[python-win32] Executing a program on a remote machine

Martin Richard Richard.Martin at thomson.net
Tue Jan 4 02:23:56 CET 2005


It seems just using 'rsh' should work.  

Rick

-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org] On Behalf Of Mark Hammond
Sent: Monday, January 03, 2005 5:18 PM
To: 'Tony Cappellini'; python-win32 at python.org
Subject: RE: [python-win32] Executing a program on a remote machine


> What I would like to do is use WMI or some other means to execute a 
> program from one system (ie system #1) which will remotely execute the

> same program on the other two systems (2 and 3), through an ethernet 
> connection. To clarify, each system will physically contain it's own 
> copy of the program to be executed.

One technique would be to use DCOM.  You would register a Python COM
object on each machine, then you could use win32com.client.DispatchEx()
to invoke and call it.  IIRC, the objects being registered will require
a custom clsctx which includes pythoncom.CLSCTX_REMOTE_SERVER. "Python
Programming on Win32" demonstrates how to do all this.

Another fairly reliable technique would be to install a service on each
machine, and use XMLRPC or some such to communicate.  This service could
then spawn child processes as each request came in, and would not rely
on having a user logged in.  Python provides most of the building blocks
you need if you are happy to roll your own.

Mark

_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32


More information about the Python-win32 mailing list