8.10. run

8.10.1. run host

rocks run host [host...] {command} [command=string]

Run a command for each specified host.

arguments

[host]

Zero, one or more host names. If no host names are supplied, the command is run on all known hosts.

command

The command to run on the list of hosts.

parameters

[command=string]

Can be used in place of the 'command' argument.

examples

$ rocks run host compute-0-0 command="hostname"

Run the command 'hostname' on compute-0-0.

$ rocks run host compute "ls /tmp"

Run the command 'ls /tmp/' on all compute nodes.