Run command on submission node

run_cmd(cmd, print = FALSE)

Arguments

cmd

A single-line command.

print

Whether to print output from the command.

Value

The output of the command.

Details

If current node is not the submission node, the command is executed via ssh.

Examples

# \dontrun{
# run pwd on remote node
run_cmd("pwd")
#> Error in ssh_connect(): bsub_opt$submission_node is not defined. No node to connect.
# }