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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



_neil_
Deleted

Feb 6, 2001, 2:01 AM

Post #1 of 1 (686 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
Neil


 
 


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

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