Article View: news.software.readers
Article #15811Re: how do I get it?
From: Drew Justin Asson
Date: Mon, 06 Mar 1995 21:45
Date: Mon, 06 Mar 1995 21:45
38 lines
2511 bytes
2511 bytes
>>>>> On 06 Mar 1995 19:04:48 GMT, pmclean@virgo.drao.nrc.ca (Philippe McLean) said:
In article <PMCLEAN.95Mar6110448@virgo.drao.nrc.ca> pmclean@virgo.drao.nrc.ca (Philippe McLean) writes:
>In article <3jdm0q$e0j@crcnis3.unl.edu> gberigan@cse.unl.edu (Greg Berigan) writes:
>[stuff deleted]
>|> The problem is that /dev/null is for output, not input. You use
>|> /dev/zero for reading. Thus:
>|>
>|> cat /dev/zero >/dev/null
>|>
>|> A common mistake.
>Really? /dev/zero doesn't return end of file when you read from it.
>What is /dev/zero?
You don't need /dev/zero for stdin. I use on a regular basis:
program_name < /dev/null > /tmp/log-file
/dev/zero returns an infinite buffer full of zeros. Writes are ignored,
but successful, to it. See man page for zero (4s). (i.e. 'man 4s zero').
Drew
--
=========================================
Drew J. Asson, Sr. S/W Engr -- SST
Space Telescope Science Institute
(410) 338-4474, Fax: (410) 338-1592
=========================================
STScI: asson@stsci.edu
Newton: DrewJAsson (@eworld.com)
http://chacmool.stsci.edu:8001/asson.html
=========================================
Technical Details
Message-ID:
<ASSON.95Mar6164547@stsci.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!insosf1.infonet.net!newshost.marcam.com!charnel.ecst.csuchico.edu!csusac!zimmer!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!noao!stsci!news.stsci.edu!assonReferences:
<3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> <3jdm0q$e0j@crcnis3.unl.edu> <PMCLEAN.95Mar6110448@virgo.drao.nrc.ca>Show Full Headers
Complete Article Headers
Message-ID: <ASSON.95Mar6164547@stsci.edu> Subject: Re: how do I get it? Date: Mon, 06 Mar 1995 21:45:47 +0000 From: asson@stsci.edu (Drew Justin Asson) References: <3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> <3jdm0q$e0j@crcnis3.unl.edu> <PMCLEAN.95Mar6110448@virgo.drao.nrc.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!insosf1.infonet.net!newshost.marcam.com!charnel.ecst.csuchico.edu!csusac!zimmer!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!noao!stsci!news.stsci.edu!asson Newsgroups: alt.sources.d,comp.lang.perl,comp.lang.tcl,news.misc,news.software.readers,alt.folklore.computers Organization: Space Telescope Science Institute, Baltimore, MD 21218 Lines: 37 Distribution: world Reply-To: asson@stsci.edu NNTP-Posting-Host: chacmool.stsci.edu In-reply-to: pmclean@virgo.drao.nrc.ca's message of 06 Mar 1995 19:04:48 GMT