I am looking for a method of piping input from one program into another continuously. Can iNotify or file polling be used on stdin or am I better off using a temp file.
Edit
Sorry for not indicating that it was in reference to a shell pipe NOT a Pipe(2).
Pipes already operate continuously. If you run
prog1 | prog2, every timeprog1writes more output to stdout,prog2will see this on stdin and be able to read it.prog2won’t see an end of file on the pipe untilprog1closes its side of the pipe (or exits, which does the same thing).