What are the ways to run .exe binary of a remote server on the remote server from a c++ application in windows platform??
views:
44answers:
4+1, though I'd consider ssh in place of telnet.
John Zwinck
2010-02-15 17:20:15
A:
open a telnet session (like MSalters suggests), or write a small server app that will run on the remote server, and listen for your its mother application's request to run that ".exe binary".
Here Be Wolves
2010-02-12 12:10:59
A:
Use WMI, see Creating a WMI Application Using C++
This code can help WBEM Class Wrapper for Local and Remote Process Creation
Good lock.
lsalamon
2010-02-12 12:33:39
A:
What you are doing sounds exactly like what psexec already does. So you could either shell out to that or re-implement how it works. There are some descriptions of what it actually does:
http://windowsitpro.com/article/articleid/42919/psexec.html (I believe I read this in the past, but it's behind a paywall now)
shf301
2010-02-12 13:08:10