[Fusioninventory-devel] [Help] how to capture STDERR with -| open syntax

Guillaume Rousse Guillaume.Rousse at inria.fr
Fri Nov 12 12:02:48 UTC 2010


Le 12/11/2010 10:46, Gonéri Le Bouder a écrit :
> Hi,
> 
> A little Perl question. Do you know if it possible to catpure STDERR with
> this syntax:
> if (open my $handle, "-|", "ddcprobe") {
> ...
> }
Redirect stderr output to stdin: open ($handle, '|', 'dccprobe 2>&1').
Otherwise, you have to use IPC::Open3 or IPC::Run.
-- 
BOFH excuse #375:

Root name servers corrupted.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4251 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20101112/e755b91e/attachment.bin>


More information about the Fusioninventory-devel mailing list