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