child.pid
- <Number> Integer
Returns the process identifier (PID) of the child process.
Example:
const spawn = require('child_process').spawn; const grep = spawn('grep', ['ssh']); console.log(`Spawned child pid: ${grep.pid}`); grep.stdin.end();
child.pid
Returns the process identifier (PID) of the child process.
Example:
const spawn = require('child_process').spawn; const grep = spawn('grep', ['ssh']); console.log(`Spawned child pid: ${grep.pid}`); grep.stdin.end();
Please login to continue.