in reply to how to run a process in background mode

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.

Replies are listed 'Best First'.
Re: Re: how to run a process in background mode
by w3ntp (Beadle) on Mar 29, 2004 at 20:31 UTC
    Thanks for the response. Tried this and it did not do what I needed it to do. Got proc::Background. was the exact solution for my application thanks for the response and assist W3NTP