Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 having an uproarious good time at the Monastery: (16)
As of 2015-07-31 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls