mrg-iot cmd run
Run one or more commands and print each result, waiting for queued jobs.
Usage
mrg-iot cmd run [-p PROJECT] [-e EXPERIMENT] [-r REALIZATION] [-x XDC] COMMAND [COMMAND ...]
Arguments
| Argument | Description |
|---|---|
COMMAND | Required. One or more spiot_ctl commands. Quote each one to keep its spaces. |
--project, -p | Project name. Default: your only project; required when you belong to several. |
--experiment, -e | Experiment name. Default: your username. |
--realization, -r | Realization name. Default: realiot. |
--xdc, -x | XDC name. Default: <experiment>xdc. |
Details
Commands run in order. When a reply says a job is queued, cmd run sends query wait_result for it and prints the real result, so one command in means one result out. Each device command is given up to 5 minutes before it times out.

Examples
mrg-iot cmd run "exp devices" -e myexp
mrg-iot cmd run "s-echodot-1 click_button" "s-echodot-1 power_off" -e myexp
mrg-iot cmd run "s-echodot-1 commands" -e myexp
See also
cmd async-run: don't wait