Skip to content

Instantly share code, notes, and snippets.

@buxtonpaul
Created June 19, 2017 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buxtonpaul/2265228b2965d843642bdfbdccc54b77 to your computer and use it in GitHub Desktop.
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
#! /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