473,388 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

listener program in Python

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.

May 12 '06 #1
2 1960
di********@gmail.com 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

May 12 '06 #2
si*********@gmail.com wrote:
di********@gmail.com wrote:

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

FWIW, s/from linux/from another machine/

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
May 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server...
1
by: Cherrish Vaidiyan | last post by:
Hello, Can anyone help me with configuring listener of Oracle 9i DB in Red Hat Linux 9.I have installed 2 database in a single system. I am using the default port of 1521 for 1 listener and 1...
5
by: Axel Dachtler | last post by:
Hi, I have a listener problem. The listener cannot read SERVICE_NAME in TNS-Descriptor. The service-name I specified in Oracle Net Manager for this database is testdb as well. ...
4
by: google | last post by:
Dear newsgroup, I give up, I must be overseeing something terribly trivial, but I can't get a simple (Java) applet to react to incoming (python) SocketServer messages. Without boring you with...
6
by: gregarican | last post by:
I have a Python UDP listener socket that waits for incoming data. The socket runs as an endless loop. I would like to pop the incoming data into an existing Tkinter app that I have created. What's...
0
by: kalpanaanand | last post by:
I am new to Oracle 9i client. i tried to log in but i am getting this error. this is my listenerfile # LISTENER.ORA Network Configuration File: C:\ProgramFiles\oracle\NETWORK\ADMIN\listener.ora #...
2
by: Flook M | last post by:
I am a tester and have to regularly uninstall software and reinstall it. unfortunately Oracle does not seem to be designed to do this. I have used the uninstall facility but this does not put the...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
0
by: =?Utf-8?B?U3RldmVT?= | last post by:
I am issuing multiple listeners using BeginGetContext and there are multiple Sockets that get communcation done. For i As Int16 = 0 To 9 ' Allow up to 10 simultaneous requests....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.