🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1021

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

#1021
From: Leslie Mikesell
Date: Tue, 11 Sep 1990 01:38
22 lines
1276 bytes
In article <8720002@hpdmd48.boi.hp.com> oscarh@hpdmd48.boi.hp.com (Oscar Herrera) writes:

>||Is there an equivalent 'pipe' like entity to /dev/null ?
>||What I'd like to do is something like this 
>||	anycommand | bitbucket
>	Well, I found the answer to my own question.
>		touch bitbucket
>		chmod +x bitbucket
>	Then    
>		ll | bitbucket      
>	works well.

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. 
A more reasonable method would be to use "|cat >/dev/null", though the
result is the same as a simple ">/dev/null".  Why did you want the
pipe, anyway?

Les Mikesell
  les@chinet.chi.il.us
Technical Details
Message-ID: <1990Sep11.013805.3594@chinet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!les
References: <8720001@hpdmd48.boi.hp.com> <8720002@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!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!les
From: les@chinet.chi.il.us (Leslie Mikesell)
Newsgroups: comp.unix.shell
Subject: Re: pipe equivalent to /dev/null ???
Message-ID: <1990Sep11.013805.3594@chinet.chi.il.us>
Date: 11 Sep 90 01:38:05 GMT
References: <8720001@hpdmd48.boi.hp.com> <8720002@hpdmd48.boi.hp.com>
Organization: Chinet - Chicago Public Access UNIX
Lines: 22