mknod

mknod

Post by Micha » Tue, 05 Feb 2002 19:46:53



Hi,

I have a question regarding mknod. If I created a pipe file using
mknod eg. mknod filename p, how do I "unpipe" it, if there is such a
thing?

 
 
 

mknod

Post by Wild Wizar » Wed, 06 Feb 2002 19:17:42



> Hi,

> I have a question regarding mknod. If I created a pipe file using
> mknod eg. mknod filename p, how do I "unpipe" it, if there is such a
> thing?

rm filename ?

--
"When in doubt, tell the truth."
                -- Mark Twain

 
 
 

mknod

Post by Baard Ove Kopper » Wed, 06 Feb 2002 19:44:47



> Hi,

> I have a question regarding mknod. If I created a pipe file using
> mknod eg. mknod filename p, how do I "unpipe" it, if there is such a
> thing?

I'm not quite sure what you mean, but...

If you want to delete it, just use 'rm'.  Even if it's
made by 'mknod', it's just another file as far linux
is concerned.

If you meant how to "empty" the pipe after writing
to it, you just need something to read from it.
Example:

$ bunzip2 -c compressed_file.bz2 > named_pipe &
$ cat named_pipe

Of cource, there is no reason to use a pipe in
the above.  You'll probably has to put the writing
to the pipe in the background (with &), as the pipe
gets "filled up", and don't accept any more until
it's "emptyed" by reading it.

-Koppe

 
 
 

1. mknod...Anyone...????

Hi guys,

A friend of mine told me that it was possible to completely re-create
the /dev directory by using the mknod command...!!!  How is this
done...???

The same friend deleted the /dev directory on one of my systems...  Any
and all help will be appreciated...  Thanks...

--
Trevor Penney,
A+, Network+ Certified...
-----------------------
That's alright, I still got my guitar...

2. sendmail 8.11.3 install?

3. mknod for /dev/zsh0 (serial port)

4. need help configuring NIS

5. Jumpstarting from an NFS server without mknod abilities?

6. RuleTool; WARNING: TODC: Out of "kernelmap" map entries

7. filemgr mknod:permisson denied error

8. Need FTP site for Mosaic with term support

9. mknod

10. How to use mknod to create /dev/one

11. creating tty's, mknod, stuck after boot with wrong tty - help

12. Missing piece creating null device with mknod

13. mknod question.