What does the following do on Linux?
cat <> FIFO |
Where FIFO is a FIFO created in the current directory.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityWhat does the following do on Linux?
cat <> FIFO |
Where FIFO is a FIFO created in the current directory.
in bash
the redirection operator <>
causes a file to be opened for both reading and writing (on file descriptor 0 by default, although you can specify another).
see the bash manual page on redirections, section 3.6.10
You can't both read and write onto the same pipe.