Re: [Discuss-gnuradio] os.popen broken pipe error

2009-04-13 Thread Thomas Schmid
python pipes are buffered. if your command produces a lot of output, then the pipes can fill up, if you don't read from them. One solution is to move to the subprocess module: http://docs.python.org/library/subprocess.html#module-subprocess Cheers, Thomas On Sun, Apr 12, 2009 at 9:52 PM, wro

Re: [Discuss-gnuradio] os.popen broken pipe error

2009-04-12 Thread satarkar
> On Sun, Apr 12, 2009 at 08:42:59PM -0400, satar...@eden.rutgers.edu wrote: >> Hi, >> >> I am trying to open one python script from another using the following >> code: >> >> >> command = 'python send.py -d %d -s %d -c %d -n %d -f trash_file.txt' >> %(dest_addr, sender_addr, cmd, seqno) >> os.pope

Re: [Discuss-gnuradio] os.popen broken pipe error

2009-04-12 Thread Eric Blossom
On Sun, Apr 12, 2009 at 08:42:59PM -0400, satar...@eden.rutgers.edu wrote: > Hi, > > I am trying to open one python script from another using the following code: > > > command = 'python send.py -d %d -s %d -c %d -n %d -f trash_file.txt' > %(dest_addr, sender_addr, cmd, seqno) > os.popen(command)

[Discuss-gnuradio] os.popen broken pipe error

2009-04-12 Thread satarkar
Hi, I am trying to open one python script from another using the following code: command = 'python send.py -d %d -s %d -c %d -n %d -f trash_file.txt' %(dest_addr, sender_addr, cmd, seqno) os.popen(command) I get the broken pipe error for some reason. Can anyone please explain what is happening?