Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 perusing the Monastery: (6)
As of 2014-09-17 10:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls