multipipe - supervise an pipeline of commands
multipipe [ directory ]
starts one supervise process for each subdirectory of the
current directory. multipipe
skips subdirectory names starting with
dots. Each supervised processes is piped a copy of standard input sent to
Every five seconds, multipipe
checks for subdirectories again. If it sees
a new subdirectory, it starts a new supervise process. If a subdirectory is
removed, it closes the pipe to that supervise process. Directory named
or with names starting with a period are ignored.
is given a command-line argument, it switches to that
directory when it starts.
is sent either the INT
, or the
signal, or it reaches end of file on standard input, it runs
on each command to shut it down, and waits for it to exit.
Exits 0 when all the commands are shut down.