[EMAIL PROTECTED] 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
way: http://tinyurl.com/ezjx7

Simon Hibbs

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to