Anyone have any idea how to startup a program like tethereal which when run with a '-w - -l' set of flags produces A LOT of output on stdout and pipe this output to a python class?

I noticed the object subprocess.Popen might be best suited to this but it doesnt seem to work right. The flag combination I provided above will cause tethereal to print each packet it recieves to stdout and then hopefully flush the stream. I want to "pipe" this output to a python script which will block read on that process stdout until a packet is recieved and then perform some processing on that packet.

I realize that 3rd party modules are available like pcapy but there is added value in using tethereal that just isnt worth discussing here.

Hope this makes sense
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to