-
Notifications
You must be signed in to change notification settings - Fork 1
Task: OS Command
TekMonks edited this page Aug 10, 2019
·
2 revisions
This is a parallel task to execute an OS command.
The command is run on the underlying OS shell. Both Windows and UNIX OSs are supported.
Errors are autodected and logged.
Usage
const {os_cmd} = require(`${CONSTANTS.EXTDIR}/os_cmd.js`);
...
...
os_cmd(the_command, stream_output: true or false);
...
The stream_output option can be skipped if streaming output is not required, or set to true if it is. If this option is omitted or set to false then the output of the command is logged, after it has completed, otherwise the output is logged as the command is running and producing it.