Exec a command
herdr_execRuns a single short command locally or on another machine without a terminal, returning its exit code and exact output; use for non-interactive commands like git diff, ls, or cat.
Instructions
Run one command here or on another machine without a terminal and return its exit code and exactly what it wrote. For short commands (git diff, ls, cat). Everything it started ends with it at exit or timeout. Use herdr_run for anything long or interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Another machine (see herdr_machines); default: this one. | |
| cwd | No | Working directory. Default: the core's; on another machine, its home. | |
| env | No | ||
| argv | No | Program and arguments, run as given (no shell). | |
| line | No | A shell line instead of argv. | |
| input | No | Text for its stdin. | |
| timeout | No | Seconds before it is ended (default 60, at most 600). |