You want "nohup" which stands for "no hangup".  If you type "nohup
perl_prog &" your program will start in the background AND keep running
when you close the shell.

This does not solve the problem of restarting a stopped process however
(if, say, someone kill -9's your program, it won't auto-re-start).

Jack Barnett wrote:
> 
> Any documents on how to run a program 24-7 .
> 
> I wrote a small perl script that checks the mail and depending on the word
> in the subject line takes certain actions depeding on the subject.
> 
> The script keeps looping and sleeping till there is new mail.  the script
> has to be run as the user to work properly and has to be always running so
> that when a user sends mail to this, it will do its things and give the
> messages back to the user.
> 
> The problems if I exist the session the program dies, and I really don't
> like have a xterm windows open 24-7 just for this.
> 
> Any ideas?
> 
> Jack

--
My public encryption key is available from 
www.az.com/~drysdam/crypt/rysdam.gpg.html
and of course www.keyserver.net

Reply via email to