1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.nl/common/mkfifo.md
2024-10-10 13:49:13 +05:30

20 lines
471 B
Markdown

# mkfifo
> Maak FIFOs (benoemde pipes).
> Meer informatie: <https://www.gnu.org/software/coreutils/mkfifo>.
- Maak een benoemde pipe op een opgegeven pad:
`mkfifo {{pad/naar/pipe}}`
- Stuur data naar een benoemde pipe en stuur het commando naar de achtergrond:
`echo {{"Hello World"}} > {{pad/naar/pipe}} &`
- Ontvang data van benoemde pipe:
`cat {{pad/naar/pipe}}`
- Deel je terminal sessie in real-time:
`mkfifo {{pad/naar/pipe}}; script -f {{pad/naar/pipe}}`