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 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,

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 ashish.mak...@gmail.com wrote: snip 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

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 sulfur...@gmail.com 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

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 c...@rebertia.com 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

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

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 ashish.mak...@gmail.com: 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

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 ashish.mak...@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