----- Original Message ----
From: Chris Dolan <[EMAIL PROTECTED]>

> Try IPC::Open3, it's in the Perl core.
>   http://search.cpan.org/perldoc?IPC::Open3
>
> IPC::Run3 is supposed to be good on Windows, but I haven't tried it  
> enough.
>   http://search.cpan.org/perldoc?IPC::Run3

Anyone have a Windows box and is willing to test this out for me?

> Finally, you can try duplicating the STDOUT filehandle and saving it  
> in STDERR.  Does this work as expected in Windows?
>
>   open STDERR, '&STDOUT';

>From perldoc perlfaq8:

       Note that you cannot simply open STDERR to be a dup of STDOUT in your 
Perl program and avoid
       calling the shell to do the redirection.  This doesn’t work:

           open(STDERR, ">&STDOUT");
           $alloutput = ‘cmd args‘;  # stderr still escapes

Cheers,
Ovid
 
-- 
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/




Reply via email to