Skip to content

Instantly share code, notes, and snippets.

@rockbot rockbot/gist:6075717
Last active Dec 20, 2015

Embed
What would you like to do?
doSomething = function(cb) {
exec(cmd, options, function(err, stdout, stderr) {
if (err) {
console.error(stdout);
console.error(stderr);
return cb(err);
}
// do some other stuff
return cb;
});
};
@julianduque

This comment has been minimized.

Copy link

commented Jul 25, 2013

doSomething = function(cb) {
  exec(cmd, options, { maxBuffer: 1000*1024 }, function(err, stdout, stderr) {
    if (err) {
      console.error(stdout);
      console.error(stderr);
      return cb(err);    
    } 

    // do some other stuff
    return cb;
  });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.