In bash, a named pipe can be kept open with cat > mypipe
. How can this be done in python? This is what I have so far:
import subprocess
import os
if not os.path.exists("/tmp/mypipe"):
os.mkfifo("/tmp/mypipe")
In bash, a named pipe can be kept open with cat > mypipe
. How can this be done in python? This is what I have so far:
import subprocess
import os
if not os.path.exists("/tmp/mypipe"):
os.mkfifo("/tmp/mypipe")