var exec = require('..');

exec(['ls', '-lh', '-a'], {cwd: '/'}, function(err, out, code) {
  if (err instanceof Error)
    throw err;
  process.stderr.write(err);
  process.stdout.write(out);
  process.exit(code);
});
