Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


how to detach spawned child process in a node js script


how to detach spawned child process in a node js script  using -'node.js'

Intent: call an external application with specified arguments, and exit script.

The following script does not work as it should:

 #!/usr/bin/node
 var cp = require('child_process');
 var MANFILE='ALengthyNodeManual.pdf';
 cp.spawn('gnome-open', ['\''+MANFILE+'\''], {detached: true});


Things tried: exec - does not detach. Many thanks in advance
    

asked Oct 19, 2015 by shegokar.anjeet
0 votes
3 views



Related Hot Questions



Government Jobs Opening


...