0
votes
0answers
64 views

rsync fails to copy files from remote machine

#Bypassing the ssh spawn -noecho /usr/bin/ssh -o 'StrictHostKeyChecking=no' "$user\@$ip"; if { $argc == $total_arguments} { set REMOTEDIR "$remote_dir"; spawn -noecho /usr/bin/rsync -r ...
1
vote
1answer
316 views

Can the expect utility handle a case where the process it spawns also spawns a sub process?

I'm trying to use expect to handle rsync over an ssh shell, but it gets stuck. If I run my rsync command it works (simplified here): It prompts me for my password and copies files to the server: ...