Run command on submission node
run_cmd(cmd, print = FALSE)
A single-line command.
Whether to print output from the command.
The output of the command.
If current node is not the submission node, the command is executed via ssh.
# \dontrun{
# run pwd on remote node
run_cmd("pwd")
#> Error in ssh_connect(): bsub_opt$submission_node is not defined. No node to connect.
# }