🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1020

Re: pipe equivalent to /dev/null ???

#1020
From: Chris Calabrese
Date: Mon, 10 Sep 1990 13:11
18 lines
892 bytes
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.''
Technical Details
Message-ID: <13722@ulysses.att.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!ulysses!ulysses.att.com!cjc
References: <8720001@hpdmd48.boi.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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