1 2 3 4 5 6 7
if not os.path.exists(pipe_name): os.mkfifo(pipe_name) pipein = open(pipe_name, 'r') while True: line = pipein.readline()[:-1] self.send(...)
<gbin> something as simple as that in a thread ?