Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!ulysses!ulysses.att.com!cjc From: cjc@ulysses.att.com (Chris Calabrese) Newsgroups: comp.unix.shell Subject: Re: pipe equivalent to /dev/null ??? Message-ID: <13722@ulysses.att.com> Date: 10 Sep 90 13:11:23 GMT References: <8720001@hpdmd48.boi.hp.com> Sender: netnews@ulysses.att.com Organization: AT&T Bell Laboratories, Murray Hill Lines: 18 How about: ... | cat > /dev/null Always works for me. Short of that, it should be a trivial C program. Something like: main() { char buffer[1024]; while(! read(0, buffer, 1024)) continue; } Name: Christopher J. Calabrese Brain loaned to: AT&T Bell Laboratories, Murray Hill, NJ att!ulysses!cjc cjc@ulysses.att.com Obligatory Quote: ``pher - gr. vb. to schlep. phospher - to schlep light.philosopher - to schlep thoughts.''