in reply to A background job from a browser

The process must let go of STDOUT for longerjob() to complete and the page to display. I believe the simplest way to do this would be a fork(), try open2() or open3() as well. But you may be able to get something to chug along in the same process you started with if you close STDOUT before executing the process. Does this help ?

Replies are listed 'Best First'.
Re^2: A background job from a browser
by Anonymous Monk on Jan 29, 2010 at 05:21 UTC
    Thanks for your suggestion. I'll give this a try and update once I know if it helps.

    BRgds