Answer the question
In order to leave comments, you need to log in
How to run a process in a loop in javascript?
I have code:
var exec = require('child_process').exec;
var cmd = exec('somethingProccess');
//cmd.stdout.on('data', function(data) {
// console.log(data);
//});
cmd.stdout.pipe(process.stdout);
So I can't do it:while(1==1){
cmd.stdout.pipe(process.stdout)
}
, because the process will run second and third parallel to the first. I need the second process to start only after the first one finishes, the second ... like the third, and so on .... 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