[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Broken pipe when I write the payload to a pipe.
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Broken pipe when I write the payload to a pipe. |
Date: |
Mon, 29 Jun 2009 09:10:46 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Mon, Jun 29, 2009 at 04:03:26AM -0700, shesh wrote:
>
> hi Brook,
> me too facing the same error. Could you/anyone please help?
> Shesh
Please take a look at the man pages.
Your example below is attempting to run a command called "pipe" and
write to it. There is no such command, hence the message:
sh: pipe: not found
Eric
> Brook Lin wrote:
> >
> > All right, I use 'import signal' and 'signal.signal(signal.SIGPIPE,
> > signal.SIG_DFL)' to solve the [Errno 32] Broken pipe. Then I met another
> > problem. The error says 'sh: pipe: not found'. However, pipe dose be
> > created. How should I do next? Thanks.
> >
> > OFDM Demodulator:
> > Modulation Type: bpsk
> > FFT length: 128
> > Occupied Tones: 100
> > CP length: 32
> > TIMEOUT
> > ok: True pktno: 1 n_rcvd: 1 n_right: 1
> > sh: pipe: not found
> >
> >
> >
> > Brook Lin wrote:
> >>
> >> Hi All,
> >>
> >> I am trying to write the payload to a pipe rather than to a file in
> >> benchmark_ofdm_rx.py. The script is attached below. However, I got the
> >> error 'Broeken pipe' when I run the script. Can anyone tell me why is
> >> that and how to correct it?
> >>
> >> rxdata.append(payload[2:])
> >> #os.mkfifo('pipe')
> >> myfile = os.popen('pipe','w')
> >> for data in rxdata:
> >> myfile.write(data)
> >> myfile.close()
> >>
> >> Thanks,
> >> Brook