Displaying 1 result from an estimated 1 matches for "artqz4".
2015 Jun 16
1
Strange problem with rsync and expect
..."
set bwlimit "[lindex $argv 1]"
set timeout "[lindex $argv 2]"
set src_path "[lindex $argv 3]"
set dest_ip "[lindex $argv 4]"
set dest_path "[lindex $argv 5]"
set passwd "[lindex $argv 6]"
spawn rsync -artqz4 -e "ssh -p 22 -o StrictHostKeyChecking=no -l $user" \
--bwlimit=$bwlimit --timeout=$timeout "$src_path" "$dest_ip:$dest_path"
expect {
"Connection refused" {exit 1}
"Name or service not known" {exit 2}
"Permissio...