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 'select', but I don�t undrestand how to do
it.

Thanks
MArcos

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to