Answer the question
In order to leave comments, you need to log in
Sending commands to child_process?
I have a code that spawns a child process (server) via spawn() and sends data to the console:
var cp = require('child_process');
var child = cp.spawn('./server');
child.stdout.on('data', function(data) {
console.log(data.toString())
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question