[TUHS] First appearance of named pipes
arnold at skeeve.com
arnold at skeeve.com
Tue Mar 10 17:29:54 AEST 2020
Grant Taylor via TUHS <tuhs at minnie.tuhs.org> wrote:
> On 3/6/20 3:44 PM, Noel Chiappa wrote:
> > a pipe is a FIFO.
>
> Hum....
>
> Does that mean that I should be able to replace pipes in my shell
> commands with a collections of FIFOs?
Absolutely:
$ mkfifo the_fifo
$ ls -l the_fifo
prw-rw-r-- 1 arnold arnold 0 Mar 10 09:28 the_fifo
$ echo foo > the_fifo & sleep 1 ; cat the_fifo
[1] 3721
foo
[1]+ Done echo foo > the_fifo
As you stated, not that you'd want to do that, but you can.
Arnold
More information about the TUHS
mailing list