node.js - grunt.util.spawn command waiting for response -


i trying run exe file command prompt within grunt task. have far is

 var done = this.async();  var cp = grunt.util.spawn({             cmd: path.resolve(options.rh)      }, done );   cp.stdout.on('data', function (data) {      grunt.verbose.writeln('stdout: ' + data.tostring());  }); 

(there args , more interesting stuff later want run)

it run , returns output, however, exe running writes message , says "to continue please press enter".

this far get. hangs. there way, spawn child requires input?

i hope enough go on, if not please let me know.

not sure if right way ( reference post ) looks question answered here. how run commands via nodejs child process?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -