Executing files or commands with Child Processes

suggest change

Syntax

Remarks

exec, execFile, fork, and spawn return a ChildProcess. execSync and execFileSync return the command's stdout, and they throw if the command fails. spawnSync returns a result object (status, stdout, stderr, and so on). A non-zero exit does not throw from spawnSync unless you check status yourself. A failure to start the process still throws.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents