Created
November 11, 2018 08:44
-
-
Save oakaigh/466428eee2ec9157fd7e0a445906f038 to your computer and use it in GitHub Desktop.
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
mkfifo /tmp/emListenPipe | |
while true; do | |
cat /tmp/emListenPipe | ( read foo; | |
if [ $foo == "a" ]; then echo bitch; fi; | |
) | nc -l 1234 > /tmp/emListenPipe | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment