Click to See Complete Forum and Search --> : How to execute a command at startup ?


someonenearHim
10-31-2001, 12:42 AM
How to execute a command at startup ?Are there many differnt methods ?

Dark Ninja
10-31-2001, 01:33 AM
You can edit the /etc/rc.d/rc.local file and add anything you want to run by adding the command line for the program at the end of the file. (Make sure everything you want to run is on its own seperate line.)

Dark Ninja

Note: The rc.local file may be elsewhere in the system. I am running Mandrake 8.1.

X_console
10-31-2001, 03:20 AM
If you mean startup as in system boot up, then as it was already mentioned, rc.local is what you're looking to modify. If you mean startup when you login, then it's ~/.bash_profile

scanez
10-31-2001, 03:21 AM
Originally posted by someonenearHim:
<STRONG>How to execute a command at startup ?Are there many differnt methods ?</STRONG>
Like X_console said, if you mean at login, then edit your shell config script. If you mean at boot, then it depends on which distro you have because not all have an rc.local by default? Which distro are you using?

SC