![]() |
|
#1
|
|||
|
|||
StartupDoes anyone know how to run a perl script at the starup of a Linux machine?
Nick |
|||
|
#2
|
|||
|
|||
AnswerI figured it out.
To set up a perl script to run at startup every time the computer starts for every user, edit the /etc/bashrc file and add something like /public/scripts/myscript.pl where ever you want it. To set up a perl script to run at startup every time a specific user logs in, edit the .bash_profile in the users home directory and add something like /public/scripts/myscript.pl where ever you want it. If you want a script to run at a certain time, look into crontab, it works nicely for scheduling something. Nick |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The