he guys, i have a problem using python and pexpect module in windows with cygwin: down a bash command like: [1] $ rsync --partial -cvaLe "/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "user at server:path_to_file" "/cygdrive/c/" it works perfect, but used in pexpect.spawn like : [2] child = pexpect.spawn(RSYNC_PATH, ['--partial', '--progress', '-cvaLe "/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"', '"' + myssl.user + '@' + myssl.server + ':' + source + '" "' + target + '"'], timeout=300) i got child.before from pexpect that is like: No such file or directory Failed to exec "/usr/bin/ssh : but without " around ssh and options rsync is about to think that -o UserKnownHostsFile=/dev/null is an rsync option and gives an error. every masking with \ or \\ or \\\ fails. Any ideas howto tell pexpect just to pass the first string? Thank you, Jörg -- Hi I am a signature virus. Please copy me to your .signature file to help me spread.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4