| triggerexec - Run a command and do various specified actions depending on what command does |
triggerexec - Run a command and do various specified actions depending on what command does
triggerexec [EVENT ACTION [EVENT ACTION [...]]] [--] COMMAND [ARGS]
Run COMMAND and execute specific actions depending on what COMMAND does.
Supported EVENT events:
Match PATTERN regex pattern to stdout/stderr line-wise.
Supported ACTION actions:
Evaluate perl expression in triggerexec(1)'s own context. Useful variables: $COMMAND_PID is the COMMAND's PID. $PARAM is a hash ref containing event parameters, for example $PARAM-{line} >> is the text triggered the action - if applicable (stdout:/stderr: events).
expect(1)
| triggerexec - Run a command and do various specified actions depending on what command does |