Javascript interpreter for Linux Javascript interpreter for Linux shell shell

Javascript interpreter for Linux


You could use NodeJS. It has a child_process module that can run arbitrary commands. E.G. child_process.spawn()

When your script is finished you run it like this:

node myscript.js


jslibs is a standalone JavaScript interpreter that runs on Linux32/64 and Windows.
You can easily run linux commands through the libraries provided by jslibs.


It's possible to define JS functions that will call your C/C++ functions that could use system() call, executing some linux commands.

So you would have

system('rpm -i myapp.rpm');system('rpm -i myapp2.rpm');

or perhaps

install('myapp.rpm');install('myapp2.rpm');