Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Redirecting STDOUT and standard error to file

by davidrw (Prior)
on Sep 08, 2005 at 21:01 UTC ( [id://490322]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (/bin/foo ; echo $? >RES)| tee -a $LOGFILE
    export ERR=$(cat RES)
    
  2. or download this
      $ cat test
      #!/bin/bash
    ...
      1 0
    
      # (so ${PIPESTATUS[0]} should give you the return of the first comma
    +nd).
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found