node child_process文档
child_process.exec(command[, options][, callback])
• command <string> The command to run, with space-separated arguments.
• options<Object>
• cwd <string> Current working directory of the child process. Default: null.
• env <Object> Environment key-value pairs. Default: null.
• encoding <string> Default: 'utf8'
• shell <string> Shell to execute the command with. See Shell Requirements and Default Windows Shell. Default: '/bin/sh' on UNIX, process.env.ComSpec on Windows.
• timeout <number> Default: 0
• maxBuffer <number> Largest amount of data in bytes allowed on stdout or stderr. If exceeded, the child process is terminated. See caveat at maxBuffer and Unicode. Default: 200 * 1024.
• killSignal <string> | <integer> Default: 'SIGTERM'
• uid <number> Sets the user identity of the process (see setuid(2)).
• gid <number> Sets the group identity of the process (see setgid(2)).
• windowsHide <boolean> Hide the subprocess console window that would normally be created on Windows systems. Default: false.
• callback<Function> called with the output when process terminates.
• error <Error>
• stdout <string> | <Buffer>
• stderr <string> | <Buffer>