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

Tim Roberts timr at probo.com
Wed Sep 19 23:51:07 EDT 2012


ashish <ashish.makani at gmail.com> wrote:
>
>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).

You haven't provided very many details, so it's possible ssh is the
low-impact solution, but don't discard the possibility of using a TCP
socket for this.  It's easy in Python.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list