Page History
...
- Node.js® is an open-source, cross-platform JavaScript runtime environment and is a frequently used scripting language available for Linux, MacOS, Windows, and other platforms.
- This article explains how to syntactically include Node.js® scripts with JS7 job scripts.
- You want to Execute the Node.js code using the JS7 shell job script. First, you need to install Node.js on your server, where you are installing the Agent for Linux, MacOS, Windows, and other platforms.
Unix
- Find the below examples for download (.json upload): run-Node.js-unix.workflow.json
In order to directly run Node.js® script code from a JS7 shell job script, the recommended approach is to use a shebang that can be invoked directly and can be parameterized like this:
Code Block language js title Example how run Node.js® script code with a shebang linenumbers true #!/usr/bin/node var name =(process.env.name); var num = parseInt(process.env.num); //print value of variable console.log( name); console.log( num);
- As a another alternative, the Node.js® script can be executed from a file that has to be located by the executing Agent:
...
Overview
Content Tools