1

Running Rsync Command Inside Expect Script

view story
linux-howto

http://stackoverflow.com – I have the following expect script that uses rsync and expect to automate the process. #!/usr/bin/expect rsync -a --progress --delete --rsh='/usr/bin/ssh' [email protected]:/var/www/test/ /var/www/test expect "password:" send "XXXXX"; interact However the rsync command of course does not work inside the expect script. Any ideas for a workaround? (HowTos)