🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1149

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

#1149
From: Dave Eisen
Date: Sat, 15 Sep 1990 19:37
23 lines
1603 bytes
In article <1990Sep11.013805.3594@chinet.chi.il.us> les@chinet.chi.il.us (Leslie Mikesell) writes:
>In article <8720002@hpdmd48.boi.hp.com> oscarh@hpdmd48.boi.hp.com (Oscar Herrera) writes:
>
>>	Well, I found the answer to my own question.
>>		touch bitbucket
>>		chmod +x bitbucket
>>		ll | bitbucket      
>
>This will work only so long as the process generating the output doesn't
>generate enough data to fill a pipe buffer.  Since your "null" program
>isn't actually going to read anything, when the pipe fills, the writing
>program will block. 

Small nit. As you said, there is a problem with the pipe buffer filling and 
the write hanging. More serious though is the problem that when bitbucket
runs and dies, any subsequent write by ll will result in ll receiving
a SIGPIPE (write to a pipe with no reader) signal and presumably
being killed.
--
Dave Eisen                      	    Home: (415) 323-9757
dkeisen@Gang-of-Four.Stanford.EDU           Office: (415) 967-5644
1447 N. Shoreline Blvd.
Mountain View, CA 94043
Technical Details
Message-ID: <1990Sep15.193724.26273@Neon.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!shelby!neon!Gang-of-Four!dkeisen
References: <8720001@hpdmd48.boi.hp.com> <8720002@hpdmd48.boi.hp.com> <1990Sep11.013805.3594@chinet.chi.il.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!shelby!neon!Gang-of-Four!dkeisen
From: dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen)
Newsgroups: comp.unix.shell
Subject: Re: pipe equivalent to /dev/null ???
Message-ID: <1990Sep15.193724.26273@Neon.Stanford.EDU>
Date: 15 Sep 90 19:37:24 GMT
References: <8720001@hpdmd48.boi.hp.com> <8720002@hpdmd48.boi.hp.com> <1990Sep11.013805.3594@chinet.chi.il.us>
Sender: news@Neon.Stanford.EDU (USENET News System)
Organization: Sequoia Peripherals
Lines: 23