That makes a lot of sense, but I still don't completely get it.

On Thu, Jul 27, 2006 at 10:07:57PM -0600, Byron Clark wrote:
> 
> It appears that you can't open a pipe for reading unless it's been
> opened for writing already.

It would seem that the "best" way to write this would be:

nc -v www.mcnabbs.org 80 >$FIFO2 <$FIFO1 &
./httpget.sh >$FIFO1 <$FIFO2

since each command opens a fifo for writing as quickly as possible and
waits as long as possible before opening a fifo for reading.

However, it seems to hang when I do it this way.  What am I missing?

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

Attachment: pgpzfmQvFmQxM.pgp
Description: PGP signature

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to