473,396 Members | 1,998 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,396 software developers and data experts.

Communication between remote scripts

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?

Jul 18 '05 #1
5 2202
Am I correct in saying that remote objects are not really needed for
this?
In article <MP************************@news2.atlantic.net>,
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?

Jul 18 '05 #2
ChrisH:
Can anyone recommend a good (and preferably simple) way for two programs
to communicate on a network?


TCP/IP / sockets:
http://www.amk.ca/python/howto/sockets/

--
René Pijlman
Jul 18 '05 #3
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

Jul 18 '05 #4
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***********************@news.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

Jul 18 '05 #5
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
Jul 18 '05 #6

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

Similar topics

3
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...
9
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. ...
7
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...
1
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...
2
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...
4
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 =...
7
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...
5
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...
1
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
0
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...
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
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...
0
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...

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.