Nodejs script
This shortcut type allows executing a Node.js script. You can find Node.js documentation and learn it on the official site: http://nodejs.org/.
Advanced Task Scheduler searches for Node.js executable (node.exe
) in the directories listed in the PATH
environment variable. You can also select Node.js executable directly in the option Use specific Node.js executable in the Scripts section of the Preferences window. You can download and install Node.js from its official site: http://nodejs.org/.
Arguments
The arguments are passed to the Node.js scripts through the advscheduler
object. The following keys are passed: actionname
, actiontime
, actionschedule
, actionsource
, actionsourceextra
, lasterrorcode
, lastexitcode
. Professional and Network Editions: all defined tempfile
variables are also passed. These arguments are described in the Variables topic.
Script output
When a script completes execution, its output appears in the execution log.
Script length
Although, the maximal length of the script is 32,768 characters, you can avoid this limitation by including script from a file with an appropriate Node.js construction.
Returning codes
Error code: Error code of starting the command
Exit code: Exit code from the script
Categories: Manual, Shortcut type
Leave a Reply
You must be logged in to post a comment.