Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: qx and STDERR?

by Fletch (Bishop)
on Nov 25, 2019 at 19:32 UTC ( [id://11109196]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -E '$foo = qx{zsh -c "print I GO TO OUT; print I GO TO ERR 1>&2
    +" 2>&1}; say qq{foo: |$foo|}'
    foo: |I GO TO OUT
    I GO TO ERR
    |
    
  2. or download this
    $ perl -E '$foo = qx{ffmpeg -f s16le -i /dev/null 2>&1}; say qq{foo: |
    +$foo|}'
    foo: |ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg develope
    +rs
    ...
        Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
    At least one output file must be specified
    |
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found