Re: subprocess to C program

2008-12-14 Thread Aaron Brady
On Dec 13, 9:09 pm, MRAB wrote: > Aaron Brady wrote: > > On Dec 13, 7:51 pm, Grant Edwards wrote: > >> On 2008-12-14, MRAB wrote: > > I am writing a C process and I want to read data from a file that I > write to in Python.  I'm creating a pipe in Python, passing it to the > C pro

Re: subprocess to C program

2008-12-14 Thread Aaron Brady
On Dec 14, 6:32 am, bobicanprogram wrote: > On Dec 13, 10:09 pm, MRAB wrote: > > > > > Aaron Brady wrote: > > > On Dec 13, 7:51 pm, Grant Edwards wrote: > > >> On 2008-12-14, MRAB wrote: > > > I am writing a C process and I want to read data from a file that I > > write to in Python.

Re: subprocess to C program

2008-12-14 Thread bobicanprogram
On Dec 13, 10:09 pm, MRAB wrote: > Aaron Brady wrote: > > On Dec 13, 7:51 pm, Grant Edwards wrote: > >> On 2008-12-14, MRAB wrote: > > I am writing a C process and I want to read data from a file that I > write to in Python. I'm creating a pipe in Python, passing it to the > C pr

Re: subprocess to C program

2008-12-13 Thread MRAB
Aaron Brady wrote: On Dec 13, 7:51 pm, Grant Edwards wrote: On 2008-12-14, MRAB wrote: I am writing a C process and I want to read data from a file that I write to in Python. I'm creating a pipe in Python, passing it to the C process, and calling '_read'. It gives me error 9, bad file nu

Re: subprocess to C program

2008-12-13 Thread Aaron Brady
On Dec 13, 7:51 pm, Grant Edwards wrote: > On 2008-12-14, MRAB wrote: > > > > >> I am writing a C process and I want to read data from a file that I > >> write to in Python.  I'm creating a pipe in Python, passing it to the > >> C process, and calling '_read'.  It gives me error 9, bad file numbe

Re: subprocess to C program

2008-12-13 Thread Grant Edwards
On 2008-12-14, MRAB wrote: >> I am writing a C process and I want to read data from a file that I >> write to in Python. I'm creating a pipe in Python, passing it to the >> C process, and calling '_read'. It gives me error 9, bad file number. >> >> Python code: >> >> import subprocess as s, o

Re: subprocess to C program

2008-12-13 Thread MRAB
Aaron Brady wrote: Hi, I am writing a C process and I want to read data from a file that I write to in Python. I'm creating a pipe in Python, passing it to the C process, and calling '_read'. It gives me error 9, bad file number. Python code: import subprocess as s, os r, w= os.pipe( ) os.wr

subprocess to C program

2008-12-13 Thread Aaron Brady
Hi, I am writing a C process and I want to read data from a file that I write to in Python. I'm creating a pipe in Python, passing it to the C process, and calling '_read'. It gives me error 9, bad file number. Python code: import subprocess as s, os r, w= os.pipe( ) os.write( w, 'abcdefghij\n