On Thu, Oct 16, 2003 at 02:01:54PM +0200, [EMAIL PROTECTED] wrote:
> Well this is good.
>
> But would be perfect to realy separate the STDERR from STDOUT. Probably will
> have diferent colors in the output. Can you get me that please.
It's right here:
> #my $pid = open3(\*WRITE, \*READ, \*ERROR
PROTECTED]
Subject: Re: Run one process and get the stdout and stderr
On Thu, 16 Oct 2003 09:56:18 +0200, [EMAIL PROTECTED] (Marcos
Rebelo) wrote:
>I need to run one program and get the stdout and stdin from it.
>If possible in real time.
>Probably I need 'IPC::Open3' and
I need to run one program and get the stdout and stdin from it.
If possible in real time.
like:
perl myscript.pl "perl -e 'foreach (1..5) {print 1; warn 2}; print \"end\"'"
would print
STDOUT: 1
STDERR: 2
STDOUT: 1
STDERR: 2
STDOUT: 1
STDERR: 2
STDOUT: end
Probably I need 'IPC::Open3' and 'se