| runOSCommand {batchtools} | R Documentation |
Run OS Commands on Local or Remote Machines
Description
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 |
[ |
sys.args |
[ |
stdin |
[ |
nodename |
[ |
Value
[named list] with “sys.cmd”, “sys.args”, “exit.code” (integer), “output” (character).
See Also
Other ClusterFunctionsHelper:
cfBrewTemplate(),
cfHandleUnknownSubmitError(),
cfKillJob(),
cfReadBrewTemplate(),
makeClusterFunctions(),
makeSubmitJobResult()
Examples
## Not run:
runOSCommand("ls")
runOSCommand("ls", "-al")
runOSCommand("notfound")
## End(Not run)
[Package batchtools version 0.9.17 Index]