Guest User

Untitled

a guest
Apr 8th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. # ftpDownloadPath.sh fitorec 2010
  2. # ______ , __
  3. # | |(_) | o /|/ \
  4. #--+--+-- _|_ _|_ __ |___/ _ __
  5. #--+--+--/ | || | / \_| \ |/ /
  6. # | | (_/ |_/|_/\__/ | \_/|__/\___/
  7. #Linea muy útil descarga todo el directorio mypath de myserver
  8. #previamente abre una sesión ftp apartir del login username password
  9. #opciones del wget:
  10. # -r : modo recursivo
  11. # -np : No parent no intentara ir a directorios superiores
  12. # --ftp-user : nombre del usuario para logearse
  13. # --ftp-password : contraseña respectiva
  14. #
  15. #se ejecuta como: ./ftpDownloadPath.sh username password
  16. if [ $# -ne 2 ]
  17. then
  18. echo "Usage: ./$0 userUTM password"
  19. exit 1
  20. fi
  21.  
  22. wget -r -np --ftp-user=username --ftp-password=password ftp://myserver.com/public_html/mypath
Add Comment
Please, Sign In to add comment