Using node's child-spawn exec basically mimics the shell, so I should be able to do
exec('python' , (error, stdout, stderr) => {
if (error || stderr) {
console.log('exec error ' , error )
console.log('exec stderr ' , stderr)
} else {
console.log('exec output ' , stdout)
}
})
or
exec('python hello.py' , (error, stdout, stderr) => {
//same as above
but I get nothing back, not even errors.
What am I missing here ?
Thanks