javascript - Node.js child process spawn isn't returning stdout -


i've been trying solve issue few days absolutely no luck. have node.js application spawning child process - it's looking @ stdout of child process , reacting it. snippet looks like:

    var childproc = spawn('/opt/game/launchgame.sh');     childproc.stdout.on('data', function(data) {         console.log("stdout: " + data);     });     childproc.on('close', function(code){         console.log('child process exited code ' + code);     }); 

if run bash script itself, log messages appear i'd expect, when run through node, never see "stdout: " messages.

any ideas?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -