listener program in Python

D

diffuser78

I want to write a simple clinet/server program that does the following.

On Windows, the program listens to the request from linux box

On Linux Box, client program send server a shutdown request and the
program at server i.e windows shuts windows sown,

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

Every help is appreciated.
 
S

simon.hibbs

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,240
Latest member
เพิ่มไลค์|LikePro

Latest Threads

Top