Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to log all output from a program?

by shmem (Chancellor)
on Oct 15, 2007 at 08:01 UTC ( [id://644852]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (perl -le 'print "foo"; print STDERR "bar"' | sed 's,^,OUT ,' | tee -a
    + log.stdout ) 2>&1 1>/dev/tty | sed 's,^,ERR ,' | tee -a log.stderr
    
  2. or download this
    (perl -le 'print "foo"; print STDERR "bar"' | sed 's,^,OUT ,') 2>&1 1>
    +>log.stdout | sed 's,^,ERR ,' >> log.stderr
    

Log In?
Username:
Password:

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

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

    No recent polls found