listener program in Python

simon.hibbs at simon.hibbs at
Fri May 12 17:43:28 CEST 2006

diffuser78 at wrote:

> I basically want to remotely shut down windows from linux and write
> such a program in python.

You probably don't need to write a service in windows for this. All you
need is to write your Linux python program with an SNMP library and
configure the Windows box to accept SNMP calls to shut down. Frankly
I'm not 100% sure how to do this. You'd have to enable the SNMP Agent
on Windows, and probably the "Force shutdown from a remote system"
system policy would have to be changed.

The O'Reilly book "Python programming on Win32" explains how to write
Windows services and do basic networking. This article explains one

Simon Hibbs

More information about the Python-list mailing list