fifo

FIFO function – manual approach

FIFO function – manual approach Question: Python novice here. I am working on an assignment that has me a bit stumped. The goal is set up a simple FIFO system, without using any imported libraries. My attempt so far is incorrect and I am looking for some suggestions on how to fix it. Attempt: requests …

Total answers: 1

Create a temporary FIFO (named pipe) in Python?

Create a temporary FIFO (named pipe) in Python? Question: How can you create a temporary FIFO (named pipe) in Python? This should work: import tempfile temp_file_name = mktemp() os.mkfifo(temp_file_name) open(temp_file_name, os.O_WRONLY) # … some process, somewhere, will read it … However, I’m hesitant because of the big warning in Python Docs 11.6 and potential removal …

Total answers: 6