triggerexec - Run a command and do various specified actions depending on what command does



NAME

triggerexec - Run a command and do various specified actions depending on what command does


SYNOPSIS

triggerexec [EVENT ACTION [EVENT ACTION [...]]] [--] COMMAND [ARGS]


DESCRIPTION

Run COMMAND and execute specific actions depending on what COMMAND does.

Supported EVENT events:

stdout:PATTERN
stderr:PATTERN

Match PATTERN regex pattern to stdout/stderr line-wise.

Supported ACTION actions:

perl:EXPR

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).


LIMITATIONS


SEE ALSO

expect(1)