How can I open a pipe both to and from a command?
The IPC::Open2 module (part of the standard perl distribution) is an easy-to-use apporach that internally uses
pipe,
fork,
and
exec
to do the job. Make sure you read the deadlock warnings in its documentation, though (see
Open2
).
Back to
Why do setuid perl scripts complain about kernel problems?
Forward to
How can I capture STDERR from an external command?
Up to
the perlfaq8 manpage