Skip to contents

Provide the command and arguments as a vector. Also can take a lgfl to which all stdout and stderr is written. If lgfl is not provided, a list is returned of 'status', 'stdout' and 'stderr'. Else only the status is returned - 1 success, 0 failed.

Usage

cmdln(cmd, args, ps, lgfl = NULL)

Arguments

cmd

Command to be run

args

Vector of command arguments, each parameter and value must be a separate element

ps

Paramters

lgfl

File to which stdout/err will be written

Value

status, integer or character

Details

Note, stdout/err are returned as 'raw'. Use rawToChar() to convert to characters.