CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
How to fire a process fully in the background



Feb 6, 2001, 2:01 AM

Post #1 of 1 (1410 views)
How to fire a process fully in the background Can't Post

I am currently trying to call another process, send it to the background and forget about it although it is still running. So my script should go on without waiting for the result of the called program. I tried a fork followed by an exec:

if (fork) { exec 'foo' } else {print "problems\n"}

Unfortunately this if statement does both cases, first it performs the exec perfectly as i want it and then it makes the printout from the else statement.

Can someone give me a hint what's wrong about that or how to solve ?

Thanks and greetings


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives