Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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


Comment on Re: capture STDOUT when some jerk opened STDOUT to /dev/tty
Select or Download Code

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 examining the Monastery: (6)
As of 2016-02-06 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (235 votes), past polls