Reputation: 67987
I need to write a .NET (C# or IronPython) console application that starts a program on a remote machine, which reads from the parent's standard input and writes to the parent's standard output. The goal is that input written to the local application gets written to the remote application, and that output from the remote application gets written to the local application's output.
How can I accomplish this? I've looked at WMI, through System.Management, but not sure how to attach the stdin/stdout streams.
Upvotes: 0
Views: 282
Reputation: 31847
What about using PsExec in your application?
You can open a remote shell using
psexec [params] cmd
and then use the local shell to write input and read output.
Upvotes: 1