Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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

by BrowserUk (Pope)
on Jan 07, 2013 at 18:13 UTC ( #1012079=note: print w/replies, xml ) Need Help??

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

I'm not allowed to touch the script. That's completely forbidden.

Make your own local copy of the script, tweak and run that. The original is untouched.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: capture STDOUT when some jerk opened STDOUT to /dev/tty

Replies are listed 'Best First'.
Re^2: capture STDOUT when some jerk opened STDOUT to /dev/tty
by Tommy (Chaplain) on Jan 07, 2013 at 21:41 UTC

    It communicates with a remote server to get the data it must process, and the remote server won't communicate with the script unless it has the right crypto hash...

    I decided the rabbit hole was getting too deep, and I wrote my own version in 1 line of shell code (a very long line with lots of pipes and regexen). *sigh*... Sometimes to win, you just have to know when you're beaten.

    "Perl follows the principle of least astonishment"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012079]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-06-22 01:39 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.