in reply to Is it possible to background a perl script from within itself?

See this thread for info on executing backgrounding a script.
Specialized modules exist for this kind of problem:

I was amazed by the length of the 'detaching' sequence.
You need Net::daemon if you want to claim a socket, otherwise Proc::daemon should suffice.

  • Comment on Re: Is it possible to background a perl script from within itself?