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