Module: shellSupport

Methods


<static> resetShell()

resets (clears) the shell STDERR and STDOUT universe variable.
(Shell output is cumulative over multiple steps.)

Source:

<static> runShell(scriptStr, done)

Runs scriptStr lines in a childProcess

Results of the run are stored in the universe at
_shellSTDOUT, _shellSTDERR, and _shellError.
In particular the status code of execution is in _shellError.code

Note that the STDOUT ans STDERR result accumulate over multiple steps.
Use resetShell to clear the previous results.

Parameters:
Name Type Description
scriptStr string

shell script

done function

childProcess completed callback

Source:
Returns:

undefined


<static> runSkipError()

Same as runShell,
but doesn't fail when the execution errors.

Source: