Runs a process and checks its exit status code.
name | example | optional | default |
---|---|---|---|
path | "/usr/bin/echo" |
❌ | |
arguments | ["-e", "Checking things.."] |
✔ | |
environment_variables | {"FOO": "BAR"} |
✔ | |
working_directory | "/home/user/" |
✔ | inherited (*) |
uid | 1000 |
✔ | inherited (*) |
gid | 1000 |
✔ | inherited (*) |
stdout_max | 256 |
✔ | 512 |
stderr_max | 256 |
✔ | 512 |
(*) Inherited from MinMon's process.
Absolute path to the executable to be called.
List of arguments to be passed to the process.
Environment variables to be set in the process environment.
Working directory for the spawned process. The new process will inherit MinMon's working directory if this is not set.
User ID the process will be run with. The new process will inherit MinMon's user ID if this is not set.
Group ID the process will be run with. The new process will inherit MinMon's group ID if this is not set.
Maximum number of bytes read from standard output.
Maximum number of bytes read from standard error.
name | example | optional | default |
---|---|---|---|
status_codes | [1, 255] |
✔ | [0] |
List of all possible "good" process exit status codes. All other exist status codes will be considered "bad".
Name of the file given by the path.
status_code
: Process exit status code.stdout
: Text read from process standard output without leading and trailing whitespace.stderr
: Text read from process standard error without leading and trailing whitespace.