diff --git a/shell.js b/shell.js index e69d197..4be600b 100644 --- a/shell.js +++ b/shell.js @@ -31,6 +31,8 @@ function exec(tag, file, args, options, callback) { debug(tag + ' execFile: %s %s', file, args.join(' ')); + options.maxBuffer = 1000 * 1024; // in bytes default is 200*1024 + var cp = child_process.spawn(file, args, options); cp.stdout.on('data', function (data) { debug(tag + ' (stdout): %s', data.toString('utf8')); @@ -68,6 +70,8 @@ function system(tag, cmd, options, callback) { debug(tag + ' system: %s %j', cmd, options); + options.maxBuffer = 1000 * 1024; // in bytes default is 200*1024 + var cp = child_process.exec(cmd, options, function (error, stdout, stderr) { if (error) debug(tag + ' (error) ' + error);