|
|
|
|
wanttorun100
Member
|
|
|
Joined: 14 Feb 2005
Posts: 4946
Location: Just to the right of Atilla the Hun!
|
| Back to top
|
|
Posted: 09/02/05 - 10:03 Post subject: windows equivalent of /dev/null
anyone know of one?
|
|
|
|
|
MW
Freak du Jour
|
|
|
Joined: 22 Dec 2004
Posts: 981
|
| Back to top
|
|
Posted: 09/02/05 - 10:05 Post subject:
what?
what are you trying to do?
|
|
|
|
|
wanttorun100
Member
|
|
|
Joined: 14 Feb 2005
Posts: 4946
Location: Just to the right of Atilla the Hun!
|
| Back to top
|
|
Posted: 09/02/05 - 10:09 Post subject:
I need an empty file to read - IT geek thing
|
|
|
|
|
purple hayes
Frightened Inmate #2
|
|
|
Joined: 14 May 2002
Posts: 14462
Location: ON YOUR LEFT!
|
| Back to top
|
|
Posted: 09/02/05 - 10:11 Post subject:
Take that trashy UNIX talk somewhere else mister.
Last edited by purple hayes on 09/02/05 - 10:17; edited 1 time in total
|
|
|
|
|
wanttorun100
Member
|
|
|
Joined: 14 Feb 2005
Posts: 4946
Location: Just to the right of Atilla the Hun!
|
| Back to top
|
|
Posted: 09/02/05 - 10:13 Post subject:
| purple hayes wrote: | | Take that trasy UNIX talk somewhere else mister. |
unix is user friendly - it's just picky about who its friend are
|
|
|
|
|
cdnhollywood
Member
|
|
|
Joined: 05 Oct 2004
Posts: 1538
Location: Ottawa, Canada
|
| Back to top
|
|
Posted: 09/02/05 - 10:40 Post subject:
Unixphobes.....don't know what's good for them. When's the last time a unix or Linux box gave you the blue screen of death?
As for the /dev/null equivalent, I can't say I know of one. But if you're trying a read from Windows, just use an empty file as the equivalent. The man page for null says that's what it always does.
| Code: | DESCRIPTION
Data written on a null or zero special file is discarded.
Reads from the null special file always return end of file, whereas
reads from zero always return \0 characters.
null and zero are typically created by:
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
chown root:mem /dev/null /dev/zero
|
Can you write code to create this file with the mknod in C?
|
|
|
|