GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Windows
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Feb-2002, 16:13
nniehoff nniehoff is offline
Awaiting Email Confirmation
 
Join Date: Aug 2001
Location: US
Posts: 115
nniehoff has a spectacular aura about

Startup


Does anyone know how to run a perl script at the starup of a Linux machine?
Nick
  #2  
Old 11-Feb-2002, 17:41
nniehoff nniehoff is offline
Awaiting Email Confirmation
 
Join Date: Aug 2001
Location: US
Posts: 115
nniehoff has a spectacular aura about

Answer


I 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 GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:49.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.