- Create
enqueue.shandconsumer.shwith the below contents. - start
consumer.shin the shell where you want to run commands - use
enqueue.sh echo helloto run echo hello in the other shell
Optionally:
- use environment variable FIFO=./queue2 consumer.sh to use a different queue