[H-GEN] Piping
Anthony Towns
aj at humbug.org.au
Mon Nov 3 08:02:39 EST 1997
-----BEGIN PGP SIGNED MESSAGE-----
Hello world,
I have a question.
It concerns what seems to be a really odd buffering scheme.
Here's an example. I'll type "hello", "world" each time.
] [aj at azure ~]$ cat | grep ""
] hello
] hello
] world
] world
]^D
] [aj at azure ~]$ cat | tee a
] hello
] hello
] world
] world
]^D
That behaviour, I like. _This_, however, I don't:
] [aj at azure ~]$ cat | grep "" | tee a
] hello
] world
]^D
] hello
] world
] [aj at azure ~]$ _
_Why_ does it wait until I hit ^D when I chain more than just one
command into my pipe? (or, at least, why does it wait until it's
buffer is full, rather than doing it simulatenously)
(Still, I guess it's better than DOS. ``When you say "a | b", you mean
"a > /tmp/a_out; b < /tmp/a_out", right?'' Geez I hate that)
Sheesh. I'm using tee(1) because I want _immediate_ output as well as
just a log, you _stupid_, _stupid_ machine. Bad buffer. Naughty
buffer. No biscuit.
Cheers,
aj
- --
Anthony Towns <aj at humbug.org.au> <http://student.uq.edu.au/~s343676/>
I don't speak for anyone save myself. PGP encrypted mail preferred.
``NT, Networking, Security. Pick any two (you can't have all three).''
-- _The Twelve Networking Truths_, RFC 1925, paraphrased
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: ascii
Comment: Key available at http://student.uq.edu.au/~s343676/aj_key.asc
iQCVAwUBNF3LcuRRvX9xctrtAQFxKAP/bkYeMgyZ+ZhgxeTDB0/6pmBBMlIc/gUT
OpApP7SYtsIVlwVWreBJ/ooc7ThKX6qPUjn1QYuIYnwbtDt9Le5tXzz022t8X4mw
E/A/naJ+aY8/6woMaMe3gIcbE6WkGQ//QYy49ONtldQ2Wc9PzuMjO8EgoS5Xxdyj
AaM3/ce2lhY=
=Seod
-----END PGP SIGNATURE-----
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list