Does psexec support input redirection?

Posted by aknuds1 on Server Fault See other posts from Server Fault or by aknuds1
Published on 2011-01-03T10:10:34Z Indexed on 2011/01/03 10:55 UTC
Read the original article Hit count: 396

Filed under:
|

I am trying to control a remote Python script, which reads commands from stdin, via psexec 1.98, but I need to redirect psexec's input since psexec itself will be launched from another program. However, I have no luck making psexec accept redirected input. Is it supposed to work at all?

An example of what I'm trying to do, where input is a file containing input to the remote script:

psexec \\mymachine python c:\script.py < input

© Server Fault or respective owner

Related posts about windows-server

Related posts about psexec