Web Hosting Talk







View Full Version : background process


protector330
03-29-2002, 03:36 AM
good morning :-)

I have this script: /usr/local/directory/filename.pl which opens a port on the server and listens to the input.

This script should be running 24 hours a day and start when system is bootet.

I did already test this .PL and it works fine, but as soon as I close the SSH or Telnet session the script stops, too.

How can I launch the script so that it works in background until somebody comes and kills the process?

I did try to create e new user on my RH 7.2 box and started the script with this new user under webmin. But as soon as I close webmin the .PL script stops, too :D

Any idea? Thanks!

priyadi
03-29-2002, 09:52 AM
Try "/usr/local/directory/filename.pl &" or possibly "nohup /usr/local/directory/filename.pl &".

T_E_O
03-29-2002, 10:06 AM
and if priyadi's suggestion does not work, you could use screen to do what you described.