develooper Front page | perl.beginners | Postings from January 2002

capturing output of an other program

Pozsar Balazs
January 5, 2002 12:39
capturing output of an other program
Message ID:

Hi all,

under shell i can capture the the output of a child process
with this for eg:
# dpkg --status-fd 3 --remove xxx 3>&1 2>/dev/null >/dev/null
[output of dpkg on fd 3...]

Okay, I could still use open here, but I would also want to
capture the standard output (stdout&stderr) of the child process,
but _seperately_ from the fd3.

So something like IPC::Open3, but that only allows to capture fd 1 & 2.

Can anyone help me please?

pozsy Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About