Using Psexec With Spawning A Child Process Results In Truncated Stdout
My goal is to be able to execute a command on a remote machine and get the full stdout response from the command that was run. What I am getting is a truncated result. When I run t
Solution 1:
Try using the { stdio: 'inherit' } option
var spawn = require('child_process').spawn,
appname = spawn('psexec.exe', ['-accepteula', '\\\\remotepcname', '-u', 'domain\\username', '-p', 'supersecretpassword', 'ipconfig'], { stdio: 'inherit' });
Post a Comment for "Using Psexec With Spawning A Child Process Results In Truncated Stdout"