Hi,
I am trying to sftp using expect, but not getting through as it prompt for password is coming
Following is the code
output is as follows:
I am trying to sftp using expect, but not getting through as it prompt for password is coming
Following is the code
Code:
#/usr/bin/expect > output.log
sftp medcdr@10.130.254.50
expect "password:"
send "Med@Cdr12\n"
expect "sftp>"
send "put ZTE_*201505*\r"
expect "sftp>"
send "bye\r"
EOF
Code:
Connecting to 10.130.254.50...
medcdr@10.130.254.50's password: