On Sun, Apr 12, 2009 at 08:42:59PM -0400, [email protected] 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 _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
