|
|
|
|
| View previous topic :: View next topic |
| Author |
Message |
extropalopakettle
No offense, but....
|
Posted: Fri Aug 22, 2003 2:55 pm Post subject: 1 |
|
|
| 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 |
|
 |
jadesmar
Bad Puppy
|
Posted: Fri Aug 22, 2003 3:33 pm Post subject: 2 |
|
|
/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 |
|
 |
jesternl
Yankee Doodle Dutchie
|
Posted: Fri Aug 22, 2003 3:43 pm Post subject: 3 |
|
|
| It doesn't work on WinNT or my Win2k server ? |
|
| Back to top |
|
 |
jadesmar
Bad Puppy
|
Posted: Fri Aug 22, 2003 4:13 pm Post subject: 4 |
|
|
| Well, this should only appear when running some Posix compliant programs, it should also remain exactly 0 bytes in length. |
|
| Back to top |
|
 |
extropalopakettle
No offense, but....
|
Posted: Fri Aug 22, 2003 5:06 pm Post subject: 5 |
|
|
| 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 |
|
 |
jadesmar
Bad Puppy
|
Posted: Fri Aug 22, 2003 5:24 pm Post subject: 6 |
|
|
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 |
|
 |
HyToFry
Drama queen
|
Posted: Fri Aug 22, 2003 5:29 pm Post subject: 7 |
|
|
| 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 |
|
 |
extropalopakettle
No offense, but....
|
Posted: Fri Aug 22, 2003 11:05 pm Post subject: 8 |
|
|
| 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 |
|
 |
|
|
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
|
|