0
#!/usr/bin/expect -f
#set timeout 25
spawn rsync [email protected]:'/usr/backups /usr/backup-scripts /root/test/' /root/
expect "[email protected]'s password: $"
#send "\$xxxxxx\n"
#expect "\\$ $
什麼是錯的,上面的腳本我得到一個錯誤說無效的rsync選項的rsync在Expect腳本
它沒有工作k,你是否在上面提到的預期腳本中嘗試了它。 – Rajeev 2010-11-26 04:34:04