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

  1. Path: sparky!uunet!ferkel.ucsb.edu!ucsbcsl!network.ucsd.edu!usc!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!eagle!hopper3.lerc.nasa.gov!dmartin
  2. From: dmartin@hopper3.lerc.nasa.gov (David Martin)
  3. Newsgroups: comp.unix.msdos
  4. Subject: Devices in dos
  5. Message-ID: <1992Aug19.132749.23971@eagle.lerc.nasa.gov>
  6. Date: 19 Aug 92 13:27:49 GMT
  7. Sender: news@eagle.lerc.nasa.gov
  8. Distribution: usa
  9. Organization: NASA Lewis Research Center
  10. Lines: 15
  11. Nntp-Posting-Host: hopper3.lerc.nasa.gov
  12.  
  13. This is a pretty simple question.  I want to create a device similar to 
  14. /dev/null on unix.  Can it be done?  I have tried to make a program to 
  15. dump stdin until EOF, but I have to do a pipe instead of a redirection.
  16. i.e. command | devnull   instead of   command > devnull
  17. My application treats these differently, don't ask me why.
  18.  
  19. Email prefered.  :)
  20. -- 
  21. |-------------------------------------------------------------------------|
  22. | o : David M. Martin                   /\/                           : o |
  23. |   : Computer Associate                      Silent...               :   |
  24. | o : Sverdrup/NASA LeRC                 |             but deadly     : o |
  25. |   : dmartin@hopper3.lerc.nasa.gov             # rm -rf /* &         :   |
  26. | o : CompuServe: 70244,2712            \/\                           : o |
  27. |-------------------------------------------------------------------------|
  28.