2016-02-22 22:12:51 +00:00
|
|
|
# mkfifo
|
|
|
|
|
2024-04-18 05:04:00 +01:00
|
|
|
> Make FIFOs (named pipes).
|
2021-04-01 16:54:26 +01:00
|
|
|
> 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}}`
|
2024-08-23 12:42:11 +01:00
|
|
|
|
|
|
|
- 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}}`
|