Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Crackers2 (Parson)
on Oct 29, 2014 at 19:17 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-29 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found