u671296 has asked for the wisdom of the Perl Monks concerning the following question:
I want to run the longer job in the background, so the browser user doesn't get bored and can also close his browser. I've tried backticks and system to initiate the longer job e.g. as follows
but the whole response waits for longerjob to complete. Perhaps this is really a Unix question but "path\longerjob.pl &" works fine on the Unix command line. Why does the perl script wait for it to complete ? Can I stop Perl waiting ? I haven't tried fork yet is that an answer ? the only answer ?job.pl contains...... `path\longerjob.pl &`; print "response to user"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A background job from a browser
by marto (Cardinal) on Jan 28, 2010 at 14:19 UTC | |
by u671296 (Sexton) on Jan 28, 2010 at 14:34 UTC | |
by u671296 (Sexton) on Jan 28, 2010 at 14:37 UTC | |
by u671296 (Sexton) on Jan 28, 2010 at 14:40 UTC | |
|
Re: A background job from a browser
by Fox (Pilgrim) on Jan 28, 2010 at 14:33 UTC | |
|
Re: A background job from a browser
by Anonymous Monk on Jan 28, 2010 at 17:54 UTC | |
by Anonymous Monk on Jan 29, 2010 at 05:21 UTC |