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
> 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
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)
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?