LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2003, 08:41 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
Running a command on startup?


I'm curious: Let's say I wanted to instruct my mandrake to run a command on startup. How would I do that. Is there a special file I can put the command line in?

-Thanks
 
Old 09-06-2003, 08:57 PM   #2
linux_pioneer
Member
 
Registered: May 2003
Distribution: Solaris 10, Solaris 8.0, Fedora Core 3
Posts: 203

Rep: Reputation: 30
look in your home directory and enter the command in your profile file. It will be hidden with a period in front of it. The name should be something like ".bash_profile".
 
Old 09-06-2003, 09:03 PM   #3
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
By home directory do you mean of my specific user? There doesn't seem to be a file like that in /home/aaron.

Also, I'd prefer this to be launched when it loads the programs on the linux loading screen (its a command that turns my sound on.)

Thanks
 
Old 09-06-2003, 09:22 PM   #4
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Try adding the command to /etc/rc.d/rc.local
 
Old 09-06-2003, 09:50 PM   #5
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
It works!

WHile I'm at it, could I ask how you would go about changing which programs are loaded into the memory on startup? I'd like it to go a bit faster on startup, and plus I don't use a lot of those programs.

Or would it not make a very big difference?
 
Old 09-06-2003, 11:43 PM   #6
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
When you say, "programs ... loaded into the memory on startup," I assume you mean what "services" are loaded on startup. I believe that Mandrake uses the chkconfig tool from the console (type 'man chkconfig'). You can also use Webmin, and there is a KDE tool for SysV services configuration, but I can't remember the name.

You should probably start a new thread in the Mandrake forum for 'How do I start/stop services on boot". I am not a Mandrake user.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Xscreensaver at Startup burningsun1981 DamnSmallLinux 1 07-04-2005 01:04 AM
Running Programs at Startup burningsun1981 Linux - Newbie 2 07-03-2005 07:56 PM
running a command on startup scankyfrank Linux - General 8 05-08-2005 05:03 PM
Running a command at Startup TuxTimo Linux - Newbie 6 02-27-2004 05:11 PM
Programs Running On Startup skate Linux - Newbie 1 10-14-2003 04:34 AM


All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration