hey did you find the answer for this
--
https://mail.python.org/mailman/listinfo/python-list
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:
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
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
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
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
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
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