home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / msdos / 945 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.3 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!lll-winken!sol.ctr.columbia.edu!eff!iWarp.intel.com|inews.Intel.COM!inews!pinkas
  2. From: pinkas@caraway.intel.com (Israel Pinkas)
  3. Newsgroups: comp.unix.msdos
  4. Subject: Re: Devices in dos
  5. Message-ID: <PINKAS.92Aug19143141@caraway.intel.com>
  6. Date: 19 Aug 92 22:31:41 GMT
  7. References: <1992Aug19.132749.23971@eagle.lerc.nasa.gov>
  8. Sender: news@nntp-sc.Intel.COM (USENET News System)
  9. Distribution: usa
  10. Organization: Software Technologies, INTeL Corporation, Santa Clara, CA
  11. Lines: 16
  12. In-Reply-To: dmartin@hopper3.lerc.nasa.gov's message of 19 Aug 92 13:27:49 GMT
  13. Nntp-Posting-Host: caraway
  14.  
  15. In article <1992Aug19.132749.23971@eagle.lerc.nasa.gov> dmartin@hopper3.lerc.nasa.gov (David Martin) writes:
  16.  
  17.    This is a pretty simple question.  I want to create a device similar to 
  18.    /dev/null on unix.  Can it be done?  I have tried to make a program to 
  19.    dump stdin until EOF, but I have to do a pipe instead of a redirection.
  20.    i.e. command | devnull   instead of   command > devnull
  21.    My application treats these differently, don't ask me why.
  22.  
  23.  
  24. What's wrong with the DOS device NUL:.  This does exactly what Unix'
  25. /dev/null does.
  26.  
  27. --
  28. Disclaimer: The above are my personal opinions, and in no way represent
  29. the opinions of Intel Corporation.  In no way should the above be taken
  30. to be a statement of Intel.
  31.