473,779 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1979
di********@gmai l.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*********@gma il.com wrote:
di********@gmai l.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
38892
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 from another client computer using Net 8 Configuration. But congiguration cannot be proceeded because above error .
1
9031
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 database working properly.I have created the second database, should i give the same port no: to the 2nd listener????? What should I add in Other services section of Net Manager??
5
13435
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. (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=axel-0560nntbn1) (PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=testdb))) It is a local database so I tried testdb.localhost, but this didn't
4
5269
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 the details of my code (on request available, though), here is what I do : I have a TCPServer and BaseRequestHandler .
6
3204
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 the easiest/most efficient way of handling this? Would I create a separate thread that has the listener set a certain Tkinter variable if there is incoming data? Any suggestions would be tremendously appreciated :-)
0
3907
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 # Generated by Oracle configuration tools. SID_LIST_TEST = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = Oracle9) (ORACLE_HOME = C:\ProgramFiles)
2
4104
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 computer back to how it was before I installed it. I deleted the left over files in Program files and the Oracle folder that holds the ora92 files. I also deleted mention of Oracle path under Local_machine/Software in the Registry. I tried...
5
38836
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, I believe another set of eyes on the issue is merited. I am a MSSQL DBA and somewhat new to ORACLE; but I have read the administrators manual having a basic thorough level of knowledge (Tho' I am still learning) and understanding of how to...
0
1785
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. listener.BeginGetContext(New AsyncCallback(AddressOf request), listener) Next My application accepts data received on the context, spins off a new thread, releases the listerner, then it attaches to an available Socket to send
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.