How can I read streaming output of a subprocess

Damjan Georgievski gdamjan at gmail.com
Wed May 2 07:08:04 EDT 2012


I want to read the stream of an external process that I start with 
Python. From what I've seen that's not possible with the subprocess module?

I want to read the output of "ip monitor neigh" which will show changes 
in the ARP table on my Linux computer. Each change is a new line printed 
by "ip" and the process continues to run forever.



-- 
damjan



More information about the Python-list mailing list