Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipe='/tmp/mypipe'
- mkfifo "$pipe"
- echo "$0 going to sleep..."
- # Should block
- read < "$pipe"
- echo "$0 continuing"
- pipe='/tmp/mypipe'
- mkfifo "$pipe"
- echo "$0 waking other process"
- # might block
- echo > "$pipe"
- echo "$0 exiting"
Add Comment
Please, Sign In to add comment