Created
June 2, 2018 04:52
-
-
Save ccnokes/7826a8fdd7b26890a3aff2c2945ef8cd to your computer and use it in GitHub Desktop.
Bash fifos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkfifo fifo | |
# produce data and send into fifo | |
# have to background it because it blocks until the fifo drains/completes | |
ls -l > fifo & | |
cat fifo # this drains it and completes the job |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment