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
Post a Comment