I have a python script (A) that monitors a process (3rd party) on the
local machine (Windows).
I would like to create a second program on a remote Windows computer
that receives an update from program A periodically (maybe every 10
minutes or so), and tells it everything is running without a problem.
Can anyone recommend a good (and preferably simple) way for two programs
to communicate on a network? 5 2217
Am I correct in saying that remote objects are not really needed for
this?
In article <MP************ ************@ne ws2.atlantic.ne t>, se***@yahoo.com says... I have a python script (A) that monitors a process (3rd party) on the local machine (Windows).
I would like to create a second program on a remote Windows computer that receives an update from program A periodically (maybe every 10 minutes or so), and tells it everything is running without a problem.
Can anyone recommend a good (and preferably simple) way for two programs to communicate on a network?
ChrisH wrote: Am I correct in saying that remote objects are not really needed for this?
[...] I would like to create a second program on a remote Windows computer that receives an update from program A periodically (maybe every 10 minutes or so), and tells it everything is running without a problem.
Can anyone recommend a good (and preferably simple) way for two programs to communicate on a network?
Perhaps remote objects are a bit overkill for your specific problem.
But then again, Pyro for instance (pyro.sf.net) essentially removes
the need for any network code in your app, and takes care of various
other nasty things that happen at the network level.
So unless you choose to use Pyro or some other high level API,
you will have to deal with all this yourself-- and that may be
more work than you think...
--Irmen
Thanks for the info. I've actually been looking at Pyro as a possible
solution. In some ways however, it seems a lot more powerful than what I
need for this project.
Could you give a simple example of how a two programs can "talk" to one
another? I don't think I really need RPCs in this case.
In article <41************ ***********@new s.xs4all.nl>, irmen@-NOSPAM-
REMOVETHIS-xs4all.nl says... ChrisH wrote: Am I correct in saying that remote objects are not really needed for this? [...]I would like to create a second program on a remote Windows computer that receives an update from program A periodically (maybe every 10 minutes or so), and tells it everything is running without a problem.
Can anyone recommend a good (and preferably simple) way for two programs to communicate on a network? Perhaps remote objects are a bit overkill for your specific problem. But then again, Pyro for instance (pyro.sf.net) essentially removes the need for any network code in your app, and takes care of various other nasty things that happen at the network level. So unless you choose to use Pyro or some other high level API, you will have to deal with all this yourself-- and that may be more work than you think...
--Irmen
ChrisH wrote: Thanks for the info. I've actually been looking at Pyro as a possible solution. In some ways however, it seems a lot more powerful than what I need for this project.
Could you give a simple example of how a two programs can "talk" to one another? I don't think I really need RPCs in this case.
Well if you don't want (or need) Pyro or another high-level RPC mechanism,
you have to decide on something else. TCP or UDP socket communication
is an option. See Tim Golden's reply.
The Python source distribution contains some small socket examples
(in Demo/sockets/).
--Irmen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jacques Daussy |
last post by:
Hello
How can I transfert information between a JAVA application and a python
script application. I can't use jython because, I must use python
interpreter.I think to socket or semaphore, but can I use it on Windows
plateform ?
thanks a lot
jack
|
by: Chris |
last post by:
Is there a preferred method for having different scripts on different
computers communicate with each other?
For example, script A could tell script B that it is done with a certain
process.
I know how to do this using e-mail, but I would like a more direct
method if possible. If my ISP's mail server goes down, for example, I
don't want my processes to come to a screeching halt.
|
by: Dan V. |
last post by:
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and
connect to a remote Linux server at another company's office and query their
XML file. Their file may be updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records found in
that XML file to an xml or MS access db.
|
by: xixi |
last post by:
i have catalog a remote database on my local db2 server, but now the
remote database server with same machine name but the ip address
changed, so i remove the old one, and try to catalog again under
control center --- all cataloged systems, then i use discover search
button, find the sysetm name, but gives me error
SQL30081N A communication error has been detected. Communication
protocol being used: "TCP/IP". Communication API being...
|
by: Douglas Harber |
last post by:
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope)
installed on my desktop, do I have what I need to connect to a remote DB2
server (also running 8.1 FP5) from my desktop machine? I assume, perhaps
naively, that all the parts are there but I've spent several hours trying to
grasp how to go about accessing the remote server.
Specifically, I'm trying to create and populate databases on the remote
server from...
| |
by: Ralf Gross |
last post by:
Hi,
I installed DB2 V8.1 with fixpak 10, created a new database and can
connect to the database.
$ db2 connect to mkstest
Database Connection Information
Database server = DB2/LINUX 8.2.3
|
by: [Gauthier] |
last post by:
Hello,
I've a simple question:
On a server that run multiple asp.net HttpApplication, is there any way with
the asp.net framework to exchange data between different application?
I basically need to send message to a 'server wide' application from any
HttpApplication on the same server and obtain responses (wich may be simple
strings or streams for example), this 'server wide' application is also
|
by: Brian Patrick |
last post by:
I have an application model which will consist of a front-end
configuration application, which needs to control the state of a
back-end vb.net windows service (which is the component that does all
the work). Think of this in the same manner as say microsoft management
console and the w3svc (inetinfo) service.
What should the standard communication protocol be between the
configuration app and the service in this model?
For example,...
|
by: sraghav |
last post by:
Hi,
I have a remote server.. From client machine did catalog tcip and catalog database on the remote databse. I am unable to do a test connection from client.
Getting the following error, tried all options but couldn't get it working. Greatly appreciate your assistance
SQL30081N A communication error has been detected. Communication protocol
being used: "TCP/IP". Communication API being used: "SOCKETS". Location
where the error...
|
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...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
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...
| |