How can I read streaming output of a subprocess

2012-05-02 Thread Damjan Georgievski
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

Re: How can I read streaming output of a subprocess

2012-05-02 Thread Kushal Kumaran
On Wed, May 2, 2012 at 4:38 PM, Damjan Georgievski gdam...@gmail.com wrote: 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

Re: How can I read streaming output of a subprocess

2012-05-02 Thread Kiuhnm
On 5/2/2012 13:08, Damjan Georgievski wrote: 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? Try with cmd = 'your command here' stdout = Popen(cmd, shell = True, stdout = PIPE, stderr =

Re: How can I read streaming output of a subprocess

2012-05-02 Thread Adam Skutt
On May 2, 7:46 am, Kiuhnm kiuhnm03.4t.yahoo.it wrote: On 5/2/2012 13:08, Damjan Georgievski wrote: 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? Try with     cmd = 'your command here'    

Re: How can I read streaming output of a subprocess

2012-05-02 Thread Damjan Georgievski
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