Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: how to run a process in background mode

by Vautrin (Hermit)
on Mar 24, 2004 at 20:53 UTC ( #339544=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://339544]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-05-29 08:00 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (101 votes). Check out past polls.