Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: capture STDOUT when some jerk opened STDOUT to /dev/tty

by pvaldes (Chaplain)
on Jan 08, 2013 at 21:44 UTC ( #1012342=note: print w/replies, xml ) Need Help??


in reply to capture STDOUT when some jerk opened STDOUT to /dev/tty

I CAN'T touch the script

Is there some way to capture the output and get it to stop spewing its text to my terminal?

perl my_untouched_script 1>/dev/null

One liner example

perl -e 'print "Shut up!"' 1>/dev/null

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-10-01 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (576 votes). Check out past polls.