Created
June 19, 2017 13:21
-
-
Save buxtonpaul/2265228b2965d843642bdfbdccc54b77 to your computer and use it in GitHub Desktop.
Bash script to compile the producer code, create the fifo and run the producer and consumer together
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
#! /usr/bin/bash | |
gcc producer.c -o producer | |
mknod myfifo.txt p | |
python consumer.py <myfifo.txt & | |
./producer | |
rm myfifo.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment