The standard Python module
multiprocessing got introduced in Python 2.6 and makes creating simple client/server applications extremely easy.
Here is an example that shows how to execute arbitrary commands remotely. Because it allows executing arbitrary commands it is probably a good idea to not use it exactly like this, but rather to extend it to do only exactly what you want it to do (like kill one specific application or so).
You can download a package with the following files
(and an additional file
Example - Using os_system_client.py in Squish test scripts¶
os_system_client.pymust reside in test suite directory
os_system_server.pymust running on the remote computer
squishpyutil.pymust reside in same folder as
Example - Using os_system_client.py without Squish¶
os_system_server.pymust have been started on the remote computer
C:\Users\MyUser\Desktop> python os_system_client.py DIR
Executing remotely: "DIR"
Please note that there are platform specific tools, like PsExec which may be an option if you can limit yourself to the platform(s) supported by them.