Exec driver
Domotcl driver for running a command
Arguments
- command
- The name of the command. If the command is not located in the standard
list of directories contained in the PATH environment variable, the complete
path to the command must be specified.
Properties
- exitcode
- The exit code of the command
Short (16-bits).
- pid
- The process ID while the command is running. Changes to 0 when the
process finishes.
Unsigned short (16-bits).
- stdout
- The output produced by the command.
- stderr
- Error messages produced by the command.
Events
To process the result of the command execution, tie an action to the pid
event and check that the pid property is 0.
- exitcode
- Fires whenever the value of the exitcode property changes.
- pid
- Fires whenever the value of the pid property changes.
- stdout
- Fires whenever the value of the stdout property changes.
- stderr
- Fires whenever the value of the stderr property changes.
Commands
- execute arguments
-
Run the command with the specified arguments.
|