- {integer}
返回子进程的进程标识符(PID)。
const { spawn } = require('child_process');
const grep = spawn('grep', ['ssh']);
console.log(`衍生的子进程的 pid:${grep.pid}`);
grep.stdin.end();
返回子进程的进程标识符(PID)。
const { spawn } = require('child_process');
const grep = spawn('grep', ['ssh']);
console.log(`衍生的子进程的 pid:${grep.pid}`);
grep.stdin.end();
若有收获,就点个赞吧
0 人点赞
让时间为你证明