The trigger-wait Program
Usage
trigger-wait [ -wWdD -t timeout ] path [ prog ]
Description
The trigger-wait listens for input on the fifo path and simultaneously executes prog,
if present. It optionally waits for prog to complete and exits 0 if it received a trigger pull
and 99 otherwise.
Options
- -t timeout: Wait at most timeout seconds for a trigger pull. If timeout
seconds elapse without a trigger pull, then trigger-listen pulls its own
trigger. The default value of timeout is (unsigned int)~0.
- -w: (default) Wait for prog to complete.
- -W: Do not wait for prog to complete.
- -d: (default) Delete. Remove and recreate the fifo path upon startup.
- -D: No delete. Do not remove and recreate path upon startup.
Errors
The trigger-wait program exits 100 for permanent errors and 111 for temporary
errors.
Copyright © 2009 by SuperScript Technology, Inc. All rights reserved.