Re: how to run python script on remote machine

Discussion in 'Python' started by Tim Golden, Feb 9, 2008.

  1. Tim Golden

    Tim Golden Guest

    Praveena Boppudi (c) wrote:
    > Can anyone help me in executing python scripts on remote computer? Both
    > are windows machines.


    A fair amount depends on just you want to achieve in the wider
    picture. I'm going to assume that you have Python/pywin32 installed
    on both machines. You can, for example, use DCOM to instantiate a
    remote Python interpreter but the rest you probably be quite hard
    word. Assuming, though, that you're able to install and run some
    suitable modules on both sides then the possibilities are many.
    For some (non-exhaustive) examples:

    A simple option is Pyro[1] which has the benefit of being x-platform.
    Twisted[2] is very broad and has a lot of support although its learning
    curve is considered quite steep. Depending on the exact nature of
    what you're trying to do you could look at one of the tuplespace
    implementations[3]. Or you could use xmlrpc[4] from the stdlib. It has
    its limitations, but is simple and effective. For parallel processing
    you might try processing[5] (which has the added benefit of being
    plug-compatible with the threading module) or one of the other parallel
    libs.

    There's loads more -- CORBA, Ice, roll-your-own, PyRPC etc. but there's
    a world of difference between "executing a script on some other box" and,
    say, solving an essentially distributed problem using multiple CPUs.

    TJG

    [1] http://pyro.sf.net
    [2] http://twistedmatrix.com
    [3] http://nws-py.sourceforge.net/
    [4] http://docs.python.org/lib/module-xmlrpclib.html
    [5] http://pypi.python.org/pypi/processing
     
    Tim Golden, Feb 9, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. johnny
    Replies:
    5
    Views:
    532
    Antonio Cuni
    Jul 11, 2007
  2. Tim Golden
    Replies:
    0
    Views:
    394
    Tim Golden
    Feb 9, 2008
  3. davidj411
    Replies:
    7
    Views:
    3,317
    Tim Golden
    Oct 8, 2009
  4. Tim Chandler
    Replies:
    0
    Views:
    229
    Tim Chandler
    Oct 7, 2003
  5. Dune
    Replies:
    4
    Views:
    236
    J. Gleixner
    Jun 2, 2006
Loading...

Share This Page