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

Re^3: capturing stderr of echo piped to a file

by Crackers2 (Parson)
on Oct 29, 2014 at 19:17 UTC ( #1105535=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    > { echo out; echo err >&2; } >f1 2>&1
    > cat f1
    ...
    err
    > cat f1
    out
    
  2. or download this
    > perl -e'print "print\n"; warn "warn"' >f1 2>&1
    > cat f1
    ...
    warn at -e line 1.
    > cat f1
    print
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-11-28 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?