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

Re: Redirecting STDOUT and standard error to file

by eyepopslikeamosquito (Archbishop)
on Sep 08, 2005 at 22:16 UTC ( [id://490346]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        A | B | C
    
  2. or download this
        device=/dev/rmt8
        dd_noise='^[0-9]+\+[0-9]+ records (in|out)$'
    ...
        status=`((dd if=$device ibs=64k 2>&1 1>&3 3>&- 4>&-; echo $? >&4) 
    +|
            egrep -v "$dd_noise" 1>&2 3>&- 4>&-) 4>&1`
        exit $status;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found