Learn R Programming

bsub (version 1.1.0)

run_cmd: Run command on submission node

Description

Run command on submission node

Usage

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

Run this code
# NOT RUN {
# run pwd on remote node
run_cmd("pwd")
# }

Run the code above in your browser using DataLab