On Oct 3 2003, Randy Kobes wrote:
On Fri, 3 Oct 2003, Steve Hay wrote:
> I still worry that I've got something terribly wrong, > though. Surely it should at least start running some > tests? I was expecting it to either work, or else fail as > before with the "Failed to dup STDOUT" error on certain > (not-so-)random tests. > > Does my patch work on Linux? If not then I have got it > all wrong, and we're not still staring at a Win32 problem.
Actually, the patch did also make linux hang ... Here's one which does work on linux - the intent here is to dup/redirect STDOUT/STDERR before calling run3 $command, so that run3 inherits the parent's STDOUT/STDERR/STDIN.
Unless I'm missing something, you should use system() then.
Then we can't read read its STDOUT/STDERR and if using backticks we can't control success/failure.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]