powered by
Invoke a System Command
exec(cmd, ...)
A command object.
command
Command to be invoked, as a character string.
<dynamic dots> Additional arguments passed to cmd command. Empty arguments are automatically trimmed. If a single argument, such as a file path, contains spaces, it must be quoted, for example using shQuote.
cmd
shQuote
cmd_wd()/cmd_envvar()/cmd_envpath()
cmd_wd()
cmd_envvar()
cmd_envpath()
cmd_run()/cmd_background()/cmd_help()
cmd_run()
cmd_background()
cmd_help()
cmd_run(exec("echo", "$PATH"))
Run the code above in your browser using DataLab