Next: adapter-transport, Previous: http-transport, Up: Transports [Contents]
Oneshot exec (no shell).
Mandatory: <command>, <user>, <timeout-ms> (> 0).
<transport id="helper" plugin="process-transport"> <command>/usr/local/bin/fetch-status</command> <arg>--json</arg> <user>nobody</user> <timeout-ms>5000</timeout-ms> <mode>read</mode> <poll-cron>0 0 * * * *</poll-cron> </transport>
commandExecutable path (no shell).
argRepeatable argv element.
userAfter fork, the child drops privileges to this account.
timeout-msOn expiry the child is killed; the transport reports an error.
moderead (default): capture stdout until EOF, wait for exit.
write: write the payload to stdin, close stdin, wait for exit.
workdirOptional working directory.
poll-cronOptional for read.
Stderr is logged, never mixed into the data payload. Non-zero exit status is an error.
Tip: this plugin is for helpers that exit quickly (print JSON and
quit). To poll them forever, add <poll-cron>. It will not keep a
daemon child running; use systemd plus HTTP/adapter/file if you
need a permanent process (see Configuration Tips).