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

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ogicse!orstcs!prism.CS.ORST.EDU!peterse
  2. From: peterse@prism.CS.ORST.EDU (Erik Petersen)
  3. Newsgroups: comp.unix.msdos
  4. Subject: Re: Devices in dos
  5. Message-ID: <1992Aug21.024854.626@CS.ORST.EDU>
  6. Date: 21 Aug 92 02:48:54 GMT
  7. Article-I.D.: CS.1992Aug21.024854.626
  8. References: <1992Aug19.132749.23971@eagle.lerc.nasa.gov> <PINKAS.92Aug19143141@caraway.intel.com>
  9. Sender: usenet@CS.ORST.EDU
  10. Distribution: usa
  11. Organization: CS Dept, Oregon State University
  12. Lines: 27
  13. Nntp-Posting-Host: prism.cs.orst.edu
  14.  
  15. In article <PINKAS.92Aug19143141@caraway.intel.com>, pinkas@caraway.intel.com (Israel Pinkas) writes:
  16. |> In article <1992Aug19.132749.23971@eagle.lerc.nasa.gov> dmartin@hopper3.lerc.nasa.gov (David Martin) writes:
  17. |> 
  18. |>    This is a pretty simple question.  I want to create a device similar to 
  19. |>    /dev/null on unix.  Can it be done?  I have tried to make a program to 
  20. |>    dump stdin until EOF, but I have to do a pipe instead of a redirection.
  21. |>    i.e. command | devnull   instead of   command > devnull
  22. |>    My application treats these differently, don't ask me why.
  23. |> 
  24. |> 
  25. |> What's wrong with the DOS device NUL:.  This does exactly what Unix'
  26. |> /dev/null does.
  27. |> 
  28. -- 
  29. Better yet, /dev/nul (yes one 'l') exists in DOS as well. Pity there
  30. is only one 'l', but it's DOS.
  31.  
  32. I believe there is a switch to disable the /dev/nul in DOS, but I cannot
  33. remember if it is an Undocumented feature or not. Also, I have MS-DOS 3.3.
  34. It is possible that some DOS's don't recognize /dev/nul.
  35.  
  36. In case you are wondering, I do not have a /dev directory on any of
  37. my disks. /dev/nul is in the OS.
  38. -------------------------------------------------------------------------
  39.    Erik Petersen
  40.    peterse@CS.ORST.EDU
  41. -------------------------------------------------------------------------
  42.