tldr/pages/common/mkfifo.md

17 lines
357 B
Markdown
Raw Normal View History

2016-02-22 22:12:51 +00:00
# mkfifo
> Make FIFOs (named pipes).
> More information: <https://www.gnu.org/software/coreutils/mkfifo>.
2016-02-22 22:12:51 +00:00
- Create a named pipe at a given path:
`mkfifo {{path/to/pipe}}`
- Send data through a named pipe and send the command to the background:
`echo {{"Hello World"}} > {{path/to/pipe}} &`
- Receive data through a named pipe:
`cat {{path/to/pipe}}`