[python-win32] Pipe output of tethereal to python
mark mclarnon
mark.mclarnon at gmail.com
Sat Nov 12 00:54:34 CET 2005
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20051111/cc0c117f/attachment.html
More information about the Python-win32
mailing list