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

Re: forking efficiency

by setantae (Scribe)
on Jan 14, 2001 at 04:41 UTC ( [id://51663]=note: print w/replies, xml ) Need Help??


in reply to forking efficiency

It's possible that I'm missing something here, but I can't see why you would need to fork at all.
After you've outputted your redirect then closing STDOUT should allow the web server to consider the output for the client finished and return the result to the browser, so after that your script can carry on and do whatever needs to be done in the background.

At least, this works on my machine here.

setantae@eidosnet.co.uk|setantae|www.setantae.uklinux.net

Replies are listed 'Best First'.
Re: Re: forking efficiency
by kuce (Novice) on Jan 14, 2001 at 04:58 UTC
    Yeah, I had tried doing that earlier and it hadn't worked. However, I just tried it again and low and behold it worked. Now I don't have to deal with forking and sub processes.

    Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-23 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found