Forum Discussion
Stuart_Weenig
Mastermind
3 years agoOn 7/8/2022 at 2:01 PM, alan said:Adding the script name "compliance-count.js" to linux/unix script and then parameters "node" is still giving me the same error.
Yep, that's backward. since "node compliance-count.js" works in that directory, I'd try putting a she-bang line at the top of your script pointing to the path of node on that collector. That way you can just put "compliance-count.js" in the linux/unix script and nothing in parameters. The collector will treat the script as executable and pass it to the OS. The OS will read the shebang line and call the script using node.
Related Content
- 5 months ago
- 7 months ago