I\'m stumped and feeling stupid. I\'ve tried every search combination I can think of to figure this out. It seems simple, but being new to javascript I\'m not seeing anythin
You can do it with node.js' exec
.
# install node.js (debian/ubuntu)
sudo apt-get install nodejs
# run node.js CLI
node
From an example found here:
var sys = require('sys')
var exec = require('child_process').exec;
function puts(error, stdout, stderr) { sys.puts(stdout) }
exec("ls -la", puts);
This outputs a directory listing.