>>>>> Bryan <bryanv...@gmail.com> (B) wrote: >B> On Jul 10, 12:03 pm, mgi...@motorola.com (Gary Duzan) wrote: >>> In article >>> <3af970b1-b454-4d56-a33f-889ecfaca...@l28g2000vba.googlegroups.com>, >>> >>> Bryan <bryanv...@gmail.com> wrote: >>> >>> >rsyncExec = '/usr/bin/ssh' >>> >source = 'r...@10.0.45.67:/home/bry/jquery.lookup' >>> >dest = '/home/bry/tmp' >>> >rshArg = '-e "/usr/bin/ssh -i /home/bry/keys/brybackup.key"' >>> >args = [rsyncExec, '-a', '-v', '--dry-run', rshArg, source, dest] >>> >>> I think you want -e and the ssh command to be separate args. >>> Something like: >>> >>> rshArg = '/usr/bin/ssh -i /home/bry/keys/brybackup.key' >>> args = [rsyncExec, '-a', '-v', '--dry-run', '-e', rshArg, source, dest] >>> >>> or: >>> >>> rshArgs = [ '-e', '/usr/bin/ssh -i /home/bry/keys/brybackup.key' ] >>> args = [rsyncExec, '-a', '-v', '--dry-run'] + rshArgs + [ source, dest] >>> >>> Gary Duzan >>> Motorola H&NM
>B> Separating the argument parts worked. Strangely though, I don't need >B> to do that for arguments such as --files-from='/path/to/file'. Also, >B> in this example code I had the rsync executable path pointing to the >B> ssh program, so no wonder I was getting the output of ssh! I should have seen that because I changed it in my own copy!!! --files-from='/path/to/file *is* one argument, in contrast to -e "/usr/bin/ssh -i /home/bry/keys/brybackup.key" which is two arguments. -- Piet van Oostrum <p...@cs.uu.nl> URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: p...@vanoostrum.org -- http://mail.python.org/mailman/listinfo/python-list