Rey
0
Q:

how to return when child process is complete in node js

var child = require('child_process').exec('python celulas.py')
child.stdout.pipe(process.stdout)
child.on('exit', function() {
  process.exit()
})
0
var execSync = require('exec-sync');

var user = execSync('python celulas.py');
0

New to Communities?

Join the community