After pipefile has been run, the filters are established for programs that subsequently open the file; programs already using the file are unaffected.
Pipefile opens the file twice, once for each direction. If the file is a single-use device, use the -d flag to specify that the file is to be opened once, in ORDWR mode.
pipefile -r 'tee -a '$home/sh.history /dev/cons sh -i </dev/cons >/dev/cons >[2=1]
If the program using the file managed by pipefile exits, the filter will see EOF and exit, and the file will be unusable until the name space is repaired.
PIPEFILE(1) | Rev: Fri Jun 15 21:22:04 GMT 2007 |