To run a Node.js script from within another Node.js script, we cal;l the fork
method.
For instance, we write
require('child_process').fork('app.js');
to call fork
to run app.js.
Then in app.js, we write
console.log('calling form parent process');
to add a console log.