[Tutor] Remote processes

Bernard Lebel python at bernardlebel.com
Mon Aug 23 22:40:07 CEST 2004


Thanks for that Danny.

But ew, this is a little too advanced for me. Creating a scripts to check
completeness of rendered sequences and a little package to manage files on a
renderfarm is one thing, building a server with all the protocols, security,
socket and port connections, urls and such is another thing. I'm not I'm
there yet. I'll keep your references though, they will probably proove
useful in the future!


Cheers
Bernard


----- Original Message ----- 
From: "Danny Yoo" <dyoo at hkn.eecs.berkeley.edu>
To: "Bernard Lebel" <python at bernardlebel.com>
Cc: <tutor at python.org>
Sent: Friday, August 20, 2004 7:40 PM
Subject: Re: [Tutor] Remote processes


>
>
> On Fri, 20 Aug 2004, Bernard Lebel wrote:
>
> > Is there any way to launch and kill processes on remote computers using
> > Python? I'd like to build an utility to do just that (to control my
> > renderfarm).
> >
> > The only I found so far is os.path.spawn*( ), wich create a local
> > process.
>
>
> Hi Bernard,
>
>
> One approach you may want to consider is Remote Procedure Call (RPC).
> This involves writing a small server to do the work, and a client to get
> the server to do the work.  *grin*
>
> Your server can run on the remote computers, and all it needs to do is
> accept and do what the request asks.  Your server can then call
> os.path.spawn(), given information in the request.
>
>
> You can do this kind of remote procedure call through several mechanisms.
> One of the easier ones is in the xmlrpc libraries:
>
>     http://www.python.org/doc/lib/module-xmlrpclib.html
>     http://www.python.org/doc/lib/module-SimpleXMLRPCServer.html
>
>
> You may want to also look into the Twisted Python project: they provide
> the tools for writing good servers:
>
>     http://www.twistedmatrix.com/
>
> Their tutorial on building a "finger" utility is wondefully simple (well,
> at least the first few chapters!  *grin*):
>
>     http://www.twistedmatrix.com/documents/current/howto/tutorial/index
>
> You can probably adjust it from doing 'finger' to running renderfarm jobs.
> Twisted also has mechanisms for handling security: you may not want just
> any person to get your remote computers to run jobs without the proper
> credentials.
>
>
> Best of wishes to you!
>
>
>



More information about the Tutor mailing list