var process = require('child_process'); var cmd = 'ifconfig'; process.exec(cmd, function(error, stdout, stderr) { console.log("error:"+error); console.log("stdout:"+stdout); console.log("stderr:"+stderr); });
var process = require('child_process'); var cmd = 'ifconfig'; process.exec(cmd, function(error, stdout, stderr) { console.log("error:"+error); console.log("stdout:"+stdout); console.log("stderr:"+stderr); });