Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
For example, I am calling telnet from my script, but the boss doesn't want users to see the ip that telnet is calling (It displays Trying 192.168.1.101... when you run telnet).
I would use Net::Telnet if there wasn't a need to have control of the terminal, but anyways.
I've searched all over, all I can find is how to capture STDOUT from telnet, save it to a file, variable, etc... However, I see nothing on how I could modify STDOUT, and print it back to the terminal, and move on happily. I've tried a few different things, but I think I'm confused, can this be done? I know I can modify STDOUT when saved in an @array using s/// to remove the ip, but I just can't seem to send it back to the Terminal smoothly without loosing control of telnet. Maybe stop the flush out the output via the shell(stty)??
Make any sense?
Thanks in advance!
|
|---|