qsexec (1) Linux Manual Page
qsexec – parses the data received via stdin and executes the defined command on a pattern match.
Synopsis
qsexec -e <pattern> [-t <number>:<sec>] [-c <pattern> [<command string>]] [-p] [-u <user>] <command string>Description
qsexec reads log lines from stdin and searches for the defined pattern. It executes the defined command string on pattern match.Options
- -e <pattern>
- Specifes the search pattern causing an event which shall trigger the command.
- -t <number>:<sec>
- Defines the number of pattern match within the the defined number of seconds in order to trigger the command execution. By default, every pattern match causes a command execution.
- -c <pattern> [<command string>]
- Pattern which clears the event counter. Executes optionally a command if an event command has been executed before.
- -p
- Writes data also to stdout (for piped logging).
- -u <name>
- Become another user, e.g. www-data.
- <command string>
- Defines the event command string where $0-$9 are substituted by the submatches of the regular expression.
