[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] os.popen broken pipe error
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] os.popen broken pipe error |
Date: |
Sun, 12 Apr 2009 21:10:23 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Sun, Apr 12, 2009 at 08:42:59PM -0400, address@hidden 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)
>
> I get the broken pipe error for some reason. Can anyone please explain
> what is happening? Following are the file links if you want to reproduce
> the error:
A "broken pipe" occurs when when you attempt to write on a pipe
without a reader (See man 7 pipe).
You're not specifying the second argument to os.popen.
It defaults to 'r'. Do you want 'w'?
See the python library reference for more info.
> http://www.eden.rutgers.edu/~aanchan/input.txt
> http://www.eden.rutgers.edu/~aanchan/send.py
> http://www.eden.rutgers.edu/~aanchan/transceiver.py
> http://www.eden.rutgers.edu/~aanchan/trash_file.txt
>
> I am calling send.py from transceiver.py. The txt files are used as inputs.
>
> thanks and regards,
>
> -Sumit
>
Eric