mirror of https://github.com/CrimsonTome/tldr.git
parent
391ae0cd9e
commit
c373845f80
|
@ -6,3 +6,11 @@
|
||||||
- Create a named pipe at a given path:
|
- Create a named pipe at a given path:
|
||||||
|
|
||||||
`mkfifo {{path/to/pipe}}`
|
`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}}`
|
||||||
|
|
Loading…
Reference in New Issue