Scott,
YOU'RE THE GREATEST !!!!!
I changed the script as you suggested and it worked beautifully.....
Thank you VERY MUCH.
Have a nice day.
Moti.
Search found 4 matches
- Wed Aug 18, 2021 3:07 pm
- Forum: General
- Topic: Strange problem in SFTP script
- Replies: 5
- Views: 25352
- Wed Aug 18, 2021 8:32 am
- Forum: General
- Topic: Strange problem in SFTP script
- Replies: 5
- Views: 25352
Re: Strange problem in SFTP script
Scott hi, I tried to change the statement to "continue connecting (yes/no/fingerprint)?" {send "yes\n"; exp_continue} (without the "[ ]"), but it still stops... I just looked at the log again. After the "spawn" statement I see a line as follows: RSA key finger...
- Wed Aug 18, 2021 8:16 am
- Forum: General
- Topic: Strange problem in SFTP script
- Replies: 5
- Views: 25352
Re: Strange problem in SFTP script
Scott hi, That's the way i originally found out about the addition of the [fingerprint] text.... The original script was indeed like that: expect { default {exit 2} "continue connecting (yes/no)?" {send "yes\n"; exp_continue} "password:" {send "$env(SSH_PASS)\n&quo...
- Tue Aug 17, 2021 1:10 pm
- Forum: General
- Topic: Strange problem in SFTP script
- Replies: 5
- Views: 25352
Strange problem in SFTP script
HI, I'm using a SFTP script for some time, encountering no problems. The script is as follows: #!/usr/local/bin/expect -f set timeout 500 spawn sftp $env(SSH_USER)@$env(SSH_HOST) expect { default {exit 2} "continue connecting (yes/no/)?" {send "yes\n"; exp_continue} "passwor...