catch output from linux telnet to a python script

Posted by sandra on Stack Overflow See other posts from Stack Overflow or by sandra
Published on 2010-05-13T07:38:13Z Indexed on 2010/05/13 7:44 UTC
Read the original article Hit count: 147

Filed under:

Hello. My problem is that i want to do something like this in linux console

telnet 192.168.255.28 > process.py i.e i would like to do some transformation with console telnet output using python script. I'm see Popen in python for this case, but i can't understand how can i get input from telnet if it do not stop all time.. Pleas any ideas.

© Stack Overflow or respective owner

Related posts about python