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

capturing output of an other program

From:
Pozsar Balazs
Date:
January 5, 2002 12:39
Subject:
capturing output of an other program
Message ID:
Pine.GSO.4.30.0201052134050.11148-100000@balu

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





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About