Communicating between two computers

Moshe Zadka moshez at math.huji.ac.il
Sat Jul 1 09:42:04 EDT 2000


On Fri, 30 Jun 2000, donotspam-jen at personic.com wrote:

> FYI, I'm doing all of this on Windows NT, in case that makes a difference
> ...
> 
> Is there a good way to get a script on one computer to talk to a script on
> another computer?  The process I'm thinking of is pretty simple ... I want a
> script on a Web server to be able to send a command to a build server to
> start a build process.  I'd also like the Web server to be able to query the
> build servers to find out their status (so that two builds do not run at
> once on the same machine, for example).

Have a look at my signature: like most everything I say, it is only half
a joke. Python on two computers talking in plain old HTTP is a powerful
concept. Just derive from BaseHTTPServer on one end, and implement only
the do_GET() method, and use urllib at the other end to transmit requests. 

Both our inhouse build and backup systems are built (more or less) on
these principals.

I have no idea if you can run a Python script as an NT service: I'll leave
that to those who know windows.
--
Moshe Zadka <moshez at math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.





More information about the Python-list mailing list