Skip to main content

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​

ArgumentDescription
COMMANDRequired. One or more spiot_ctl commands. Quote each one to keep its spaces.
--project, -pProject name. Default: your only project; required when you belong to several.
--experiment, -eExperiment name. Default: your username.
--realization, -rRealization name. Default: realiot.
--xdc, -xXDC 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.

mrg-iot cmd run sending &#39;exp devices&#39;

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​