`cwd` allows you to specify the working directory from which the process is spawned.
Use `env` to specify environment variables that will be visible to the new process.
-There is a deprecated option called `customFds` which allows one to specify
-specific file descriptors for the stdio of the child process. This API is
-was not portable to all platforms and therefore removed.
-With `customFds` it was possible to hook up the new process' [stdin, stdout,
-stderr] to existing streams; `-1` meant that a new stream should be created.
-
`setsid`, if set true, will cause the subprocess to be run in a new session.
Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
`process.env`. This due to backwards compatibility issues with a deprecated
API.
+There is a deprecated option called `customFds` which allows one to specify
+specific file descriptors for the stdio of the child process. This API is
+was not portable to all platforms and therefore removed.
+With `customFds` it was possible to hook up the new process' [stdin, stdout,
+stderr] to existing streams; `-1` meant that a new stream should be created.
+Use at your own risk.
+
+There are several internal options. In particular `stdinStream`,
+`stdoutStream`, `stderrStream`. They are for INTERNAL USE ONLY. As with all
+undocumented APIs in Node, they should not be used.
+
See also: `child_process.exec()`
### child_process.exec(command, [options], callback)