I can run a bash command in node.js like so:
var sys = require(\'sys\')
var exec = require(\'child_process\').exec;
function puts(error, stdout, stderr) { s
In node documentation i found this information for the callback function:
On success, error will be null. On error, error will be an instance of Error. The error.code property will be the exit code of the child process while error.signal will be set to the signal that terminated the process. Any exit code other than 0 is considered to be an error.