Create a FIFO. Using the shell, demonstrate that two users can use this FIFO to communicate asynchronously.
What will be an ideal response?
Log in as one user and create a FIFO in /tmp so all users have permission
to access the FIFO.
$ id
uid=502(sam) ...
$ cd /tmp
$ mkfifo myfifo
$ cat > myfifo
Hi there, my name is Sam.
Log in from another terminal as another user and read the FIFO:
$ id
uid=503(max) ...
$ cd /tmp
$ cat < myfifo
Hi there, my name is Sam.
The first user can enter text into the FIFO at any time. As long as the first
user keeps the FIFO open, the second user can read the text by opening the
FIFO at any time.
You might also like to view...
A(n) ________ of original data should be made so it is possible to return to the original data should errors occur
Fill in the blank(s) with correct word
One type of gradient is a ____ gradient,in which the color blending proceeds horizontally or vertically across an object's background.
A. spatial B. linear C. vertical D. horizontal