I'm trying to use shelljs ( https://github.com/arturadib/shelljs ) for the project I'm working on, it works like a charm on Unix based systems, but as soon as I try to use it on Windows, I can start the process, but I completely cannot get the result of this process. The documentation mentioned that any of the following methods for getting output should work, but none of them work on Windows, any suggestions?
var version = exec('node --version', {silent:true}).output; var child = exec('some_long_running_process', {async:true}); child.stdout.on('data', function(data) { }); exec('some_long_running_process', function(code, output) { console.log('Exit code:', code); console.log('Program output:', output); });
source share