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

2017-06-09 Thread niteesh . k80
hey did you find the answer for this -- https://mail.python.org/mailman/listinfo/python-list

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

2012-09-20 Thread Piet van Oostrum
Chris Rebert writes: > Use the `subprocess` module instead (with shell=False). You then won't > need to worry about escaping. > http://docs.python.org/library/subprocess.html You will still need to worry about escaping because on the remote end you invoke ssh which is a shell. The obvious call:

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

2012-09-20 Thread Piet van Oostrum
Ismael Farfán writes: > How about something like this: > os.system ( 'ssh remoteuser@remote python remote.py "arg 1" "arg 2" "arg 3"' ) That won't work. You need an additional level of quoting because ssh is also a shell so it adds another level of interpretation. The following works: os.syste

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

2012-09-20 Thread Chris Rebert
On Wed, Sep 19, 2012 at 12:50 PM, ashish wrote: > 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). > 3. Has anybody

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

2012-09-20 Thread Emile van Sebille
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, contai

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

2012-09-19 Thread Tim Roberts
ashish 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, et

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

2012-09-19 Thread Ismael Farfán
2012/9/19 ashish : > 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

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

2012-09-19 Thread ashish
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