in reply to Re: Re: exec()ed process dont write to std(?:err|out)
in thread exec()ed process dont write to std(?:err|out)
and vary the sleep duration (0 and up). On Win2000 I getperl -e"exec $^X,qw[ -e sleep(1);warn(666)];die 55" && echo BOO perl -e'exec $^X,qw[ -e sleep(1);warn(666)];die 55' && echo BOO
and on debian with bash I getE:\>perl -e"exec $^X,qw[ -e sleep(0);warn(666)];die 55" && echo BOO 666 at -e line 1. BOO E:\>perl -e"exec $^X,qw[ -e sleep(1);warn(666)];die 55" && echo BOO BOO E:\>666 at -e line 1.
regardless of the sleep duration (the sleep just delays the output). The bash might be fixing the results with some kind of buffering but I can't tell.crazyinsomniac@perlmonk:~$ perl -e'exec $^X,qw[ -e sleep(1);warn(666)] +;die 55' && echo BOO 666 at -e line 1. BOO
|
|---|