Ismael Farfán <[email protected]> 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.system('''ssh remoteuser@remote "python remote.py 'arg 1' 'arg 2' 'arg
3'"''')
--
Piet van Oostrum <[email protected]>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
--
http://mail.python.org/mailman/listinfo/python-list