Skip to content

Instantly share code, notes, and snippets.

@labeneator
Last active January 4, 2016 20:59
Show Gist options
  • Save labeneator/8677772 to your computer and use it in GitHub Desktop.
Save labeneator/8677772 to your computer and use it in GitHub Desktop.
# Pre-create the fifo
# mkfifo /tmp/example_fifo
# Save this to a file and strace it
# strace -fttt -o open_close python test.py
import time
fname = "/tmp/example_fifo"
with open(fname, "r") as f:
for line in f:
print line
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment