The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

/dev/null on Windows

 
Reply to topic    The Grey Labyrinth Forum Index -> Science, Art, and Culture
View previous topic :: View next topic  
Author Message
extropalopakettle
No offense, but....



PostPosted: Fri Aug 22, 2003 2:55 pm    Post subject: 1 Reply with quote

Whenever I have a directory called 'dev' on Windows (XP, 2000 also, I think), an empty file called 'null' magically appears in it (at some point - not immediately, I don't think). Anyone else see this? Is it some kind of lame joke/Easter-egg?
Back to top
View user's profile Send private message
jadesmar
Bad Puppy



PostPosted: Fri Aug 22, 2003 3:33 pm    Post subject: 2 Reply with quote

/dev/null is the bit bin, like a garbage can for program output.

It is a useful place for posix programmers to output information that they do not want. For example, if you do not want your program to display some error messages, you can redirect stderr to /dev/null and nothing will display or be stored.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jesternl
Yankee Doodle Dutchie



PostPosted: Fri Aug 22, 2003 3:43 pm    Post subject: 3 Reply with quote

It doesn't work on WinNT or my Win2k server ?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jadesmar
Bad Puppy



PostPosted: Fri Aug 22, 2003 4:13 pm    Post subject: 4 Reply with quote

Well, this should only appear when running some Posix compliant programs, it should also remain exactly 0 bytes in length.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
extropalopakettle
No offense, but....



PostPosted: Fri Aug 22, 2003 5:06 pm    Post subject: 5 Reply with quote

It should appear under every directory called dev? Just create a directory, or several of them, called dev, anywhere on the file system, and bingo - a null gets put there? Seems odd.
Back to top
View user's profile Send private message
jadesmar
Bad Puppy



PostPosted: Fri Aug 22, 2003 5:24 pm    Post subject: 6 Reply with quote

Ok, what I am trying to say is:
1. All Unix systems have a file called /dev/null, Unix programmers or users can direct streams of characters into this and the characters will disappear.
2. Since the mid-80s IIRC, all Unix variants have attempted to standardize a programming interface. This interface is known as Posix.
3. Windows 2000, Windows XP and WinNT(I think) are posix compliant, and this would be a result of that.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HyToFry
Drama queen



PostPosted: Fri Aug 22, 2003 5:29 pm    Post subject: 7 Reply with quote

Certainly not for me (win xp and NT4.0) It could be a virus that scans all directories, or a scanner, or some other app that watches all folders...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
extropalopakettle
No offense, but....



PostPosted: Fri Aug 22, 2003 11:05 pm    Post subject: 8 Reply with quote

Quote:
Windows 2000, Windows XP and WinNT(I think) are posix compliant, and this would be a result of that.


I still don't see why it would be a result of POSIX compliance. If I create 50 folders called dev, some time later they'll all have 'null' files. Never seen anything like that on any Unix. And yes, I'm familiar with /dev/null - that's why I asked if it was a (lame) joke perhaps. I've ruled out a virus.
Back to top
View user's profile Send private message
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Science, Art, and Culture All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3