Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by salva (Abbot)
on Jan 07, 2013 at 22:56 UTC ( #1012127=note: print w/ replies, xml ) Need Help??


in reply to Re^2: capture STDOUT when some jerk opened STDOUT to /dev/tty
in thread capture STDOUT when some jerk opened STDOUT to /dev/tty

Well, you can write your own tty logger using IO::Pty. It shouldn't be too complex.

Another option may be to run the program through strace logging the interesting events. Then post-process that information to obtain a clean log of the data written to /dev/tty


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2015-07-30 10:46 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 (271 votes), past polls