Skip to content Skip to sidebar Skip to footer

How To Execute An Executable From Linux With Javascript

I'm making an application for D-bus in javascript. I need to call an executable from the javascript code and I know that it's possible to do it in Windows like this var activeXObj

Solution 1:

Install node.js (depending on your distro, sudo apt-get install nodejs) and use the ChildProcess module to execute the program.

Or, get Rhino and use the runCommand command;

Post a Comment for "How To Execute An Executable From Linux With Javascript"