June 2014
Intermediate to advanced
696 pages
38h 52m
English
A simple way to add work to another process from a Node.js process is to execute an executable file on another process using the execFile() function. This is very similar to exec() except that there is no subshell used. This makes execFile() lighter weight, but it also means that the command to execute must be a binary executable. Shell scripts on Linux and batch files on Windows do not work with the execFile() function.
The syntax for the execFile() function, which returns a ChildProcess object, call is shown below:
child_process.execFile(file, args, options, callback)
The file parameter is a string that specifies the path to the executable file that ...
Read now
Unlock full access