Guest User

Untitled

a guest
Apr 23rd, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. files(){
  2. echo "File being transmitted"
  3. sftp user@domain.com <<EOF
  4. mget ${filename} home/user
  5. exit
  6. EOF
  7. if [[ $? -ne 0 ]]; then
  8. echo "Failed to download file"
  9. exit -1
  10. fi
  11. echo "File ${filename} downloaded successfully"
  12. }
  13.  
  14. syntax error: unexpected end of file
Add Comment
Please, Sign In to add comment