Syntactic Confectionery Delight | |
PerlMonks |
fork and spoonby Sly_G (Novice) |
on Apr 02, 2011 at 21:37 UTC ( [id://897120]=perlquestion: print w/replies, xml ) | Need Help?? |
Sly_G has asked for the wisdom of the Perl Monks concerning the following question:
Suppose I made updater-script that daemonizes itself like this:
It does it ok, if I run it from command line. Then I made a script-manager for several updater-scripts like this (all of them are supposed to run independently for long periods of time). Manager should be able to run them, to show us if particular updater is running or not, and to kill running updaters (using pid files they're saving for themselves). So, when I try to run such an updater from a manager, the latter hangs and waits until updater is done. Which is not what I inteded. No matter if I use backticks or system(). What is it that I'm doing wrong? Please, help.
Back to
Seekers of Perl Wisdom
|
|