use POSIX qw(setsid); exit if fork(); # parent dies setsid; # make this a new process group ... rest of your program ...
In reply to Re: Best way to make a script run persistently (daemon)
by entropy
in thread Best way to make a script run persistently (daemon)
by Dalin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |