1

Using Expect scripts to port files to different unix box

view story
linux-howto

http://www.unix.com – Hello all, I've been trying to design a script which will help me transfer files from one unix box to another. Following is the code: Code: #!/usr/local/bin/expect spawn /usr/bin/scp ms_cp5_daily.ksh userid@cat:/prod/env/ms.txt set pass xxxxxx expect { password: {send "$pass\r"; exp_continue}       } When I run the code I am getting following Error Messages Quote: spawn /usr/bin/scp ms_daily.ksh userid@cat:/prod/env/ms.txt Host key for the host "cat" not found from database. The fingerprint of the host public key (HowTos)