1) npm install sys child_process
2) …and use it as follows:
var sys = require('sys')
var exec = require('child_process').exec;
function puts(error, stdout, stderr) {
sys.puts(stdout)
};
exec("reboot");
cheers!
1) npm install sys child_process
2) …and use it as follows:
var sys = require('sys')
var exec = require('child_process').exec;
function puts(error, stdout, stderr) {
sys.puts(stdout)
};
exec("reboot");
cheers!