![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: how to run a process in background modeby Vautrin (Hermit) |
on Mar 24, 2004 at 20:53 UTC ( #339544=note: print w/replies, xml ) | Need Help?? |
Why don't you just use system("command &"); to background the command that you are running and then have the fork exit (0);? (Remember to install a signal handler for CHLD. Also, check whether or not your fork is defined. If it isn't, die -- you've run out of system resources and are probably fork bombing your box).
Want to support the EFF and FSF by buying cool stuff? Click here.
In Section
Seekers of Perl Wisdom
|
|