Passing arguments to & executing, a python script on a remote machine from a python script on local machine (using ssh ?)

Emile van Sebille emile at fenx.com
Thu Sep 20 10:50:51 EDT 2012


On 9/19/2012 12:50 PM ashish said...
> Hi c.l.p folks
>
> Here is my situation
>
> 1. I have two machines. Lets call them 'local' & 'remote'.
> Both run ubuntu & both have python installed
>
> 2. I have a python script, local.py, running on 'local' which needs to pass arguments ( 3/4 string arguments, containing whitespaces like spaces, etc ) to a python script, remote.py running on 'remote' (the remote machine).
>
> I have the following questions:
>
> 1. What's the best way to accomplish my task ?

Check out http://rpyc.sourceforge.net/ -- It's reasonably lightweight 
and has been working well for our similar situation.

Emile





More information about the Python-list mailing list