I'm executing a child_process exec command, and it will be running several times, but I want to be able to then run a function ONLY AFTER all of the child_process iterations have finished. Is there a way to do this without libraries and just with callbacks? Right now, I can call it inside the child_process.exec body, but then the inner function would execute multiple times....child_process.exec('some command', function(err, data) {// run someCommand() after child_process.exec finishes // But ONLY once});
Submitted March 06, 2016 at 07:21PM by Alinon
No comments:
Post a Comment