Shell


Shell cmds$ {, stdout$, stderr$ }

This command allows you to execute Linux shell commands.

The cmds$ parameter contains Linux commands separated by newline chars "\n". This means cmds$ is a delimited list and the ItemSplit$() and ItemJoin$() commands can be used to convert this parameter to and from a string array.

The optional stdout$ and stderr$ return the contents of the stdout and stderr streams from the commands executed.

Execution pauses during a Shell command. When the shell completes the contents of stdout and stderr are dumped into the string variables and execution continues. There is no ongoing link to stdout and stderr`.

The shell command starts in the current working directory, but the dir can be changed however you like once you begin executing commands.







Become a Patron