This is a helper function to run arbitrary OS commands on local or remote machines.
The interface is similar to system2
, but it always returns the exit status
and the output.
Usage
runOSCommand(
sys.cmd,
sys.args = character(0L),
stdin = "",
nodename = "localhost"
)
Arguments
- sys.cmd
[
character(1)
]
Command to run.- sys.args
[
character
]
Arguments forsys.cmd
.- stdin
[
character(1)
]
Argument passed tosystem2
.- nodename
[
character(1)
]
Name of the SSH node to run the command on. If set to “localhost” (default), the command is not piped through SSH.
See also
Other ClusterFunctionsHelper:
cfBrewTemplate()
,
cfHandleUnknownSubmitError()
,
cfKillJob()
,
cfReadBrewTemplate()
,
makeClusterFunctions()
,
makeSubmitJobResult()