Posts Tagged ‘interprocess communication’

FIFOs are a very simple tool for communicating between processes. And using them in python is very easy. Simply call os.mkfifo(<path>) and treat the FIFO like any other file. For example, we can create two simple python scripts, one for sending and one for receiving. sender.py import os path = “/tmp/my_program.fifo” os.mkfifo(path) fifo = open(path, […]