Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: system or exec in a web environmentby Abigail-II (Bishop) |
on Jun 09, 2004 at 09:12 UTC ( [id://362663]=note: print w/replies, xml ) | Need Help?? |
From reading the man pages, I expect exec to create a new forkWhich man page did you read? The first sentence of my manpage: The exec function executes a system command and never returns
Is there another way to have the browser-run perl script execute the second script, in the background, and continue without hanging?Fork, and in the child, first close STDOUT and STDERR (or else the webserver won't think you're done), then exec the second program. Abigail
In Section
Seekers of Perl Wisdom
|
|