options 的stdio不是只有三个参数[stdin,stdout,stderr]吗,他前面三个设为Null,后面全部pipe,这是要闹哪样儿,这是干嘛的?求指点
他就是单纯的不想让你看懂
https://nodejs.org/dist/latest-v8.x/docs/api/child_process.html#child_process_options_stdio
spawn(‘prg’, [], { stdio: [‘pipe’, null, null, null, ‘pipe’] });
哎 好好看文档,再去看看exepath
Additional fds can be specified to create additional pipes between the parent and child 创建额外的信道。
subprocess.stdio[index] 来访问信道
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
他就是单纯的不想让你看懂
https://nodejs.org/dist/latest-v8.x/docs/api/child_process.html#child_process_options_stdio
spawn(‘prg’, [], { stdio: [‘pipe’, null, null, null, ‘pipe’] });
哎 好好看文档,再去看看exepath

Additional fds can be specified to create additional pipes between the parent and child 创建额外的信道。
subprocess.stdio[index] 来访问信道