Advertisement
Guest User

Untitled

a guest
Jun 16th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/bin/bash
  2. #Easy Ftp Transfer
  3. clear
  4.  
  5. echo '~|| Easy Ftp Transfer 2.0 by Rawnly||~ '
  6. echo ''
  7.  
  8. echo 'Welcome!!'
  9. echo ''
  10.  
  11. HOST="" #You need to edit this
  12. USERNAME="" #You need to edit this
  13. PASS="" #You need to edit this
  14.  
  15. FILE_1="filename"
  16. FILE_2="filename"
  17. FILE_3="filename"
  18. FILE_4="filename"
  19. FILE_5="filename"
  20. FILE_6="filename"
  21. FILE_7="filename"
  22. FILE_8="filename"
  23. FILE_9="filename"
  24. FILE_10="filename"
  25.  
  26. RemoteDir = ""
  27.  
  28. :FILES
  29. ftp -n $HOST <<EOF
  30. quote USER $USERNAME
  31. quote PASS $PASS
  32. cd $RemoteDir
  33.  
  34. put $FILE_1
  35. put $FILE_2
  36. put $FILE_3
  37. put $FILE_4
  38. put $FILE_5
  39. put $FILE_6
  40. put $FILE_7
  41. put $FILE_8
  42. put $FILE_9
  43. put $FILE_10
  44.  
  45. quit
  46. EOF
  47.  
  48.  
  49.  
  50.  
  51.  
  52. echo '~|| Easy Ftp Transfer ||~ '
  53. echo 'Goodbye :)'
  54. exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement