TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mknod questions
I can make a "fifo" by running "mknod filename p" but how do imput code
into it? I can't do jed filename, nor even cat. The man documentation only
tells me that I made a FIFO.
Thanks,
Ben
P.S. What is a FIFO?
> One way to do this is to have your .signature be a named pipe instead of
> a regular file..
>
> 'mknod .signature p' <-- the 'p' is for Pipe..
>
> To get a random signature, you have to run something like
>
> #!/bin/sh
> .
> .
> .
> while ( true ) do
> /usr/games/fortune > ~/.signature
> done
> .
> .
> .
>
> The '...' areas are places where you could put in some code to handle
> the possibility of multiple processes (kill the other one, quit early if
> another is already running, etc..
>
> --
> --== Mike Hicks ==--
> http://umn.edu/~hick0088 mailto:hick0088@tc.umn.edu
> ICQ:6883760
> Linux User Since 1.2.13 Current Kernel: 2.1.125
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>