Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/use/bin/expect
- spawn sftp user@xx.xx.xx.xxx
- expect "password:"
- send "password\n"
- expect "sftp>"
- send "lcd /var/scripts \r"
- expect "sftp>"
- send "mget test.txt \r"
- expect "sftp>"
- send "quit \r"
Add Comment
Please, Sign In to add comment