- Source:
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 childProcessResults 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
ansSTDERR
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: