Created
June 6, 2024 15:39
-
-
Save sevenissimo/c628d2c31763833ea9d35c8946346cdd to your computer and use it in GitHub Desktop.
Setup temporary FIFO, ensure cleanup
This file contains hidden or 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
| # Setup FIFO | |
| mkfifo ${f:=$(mktemp -u)} | |
| trap "rm -f $f" EXIT | |
| exec {fd}<>$f # Needed to enable FIFO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment