Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ftpDownloadPath.sh fitorec 2010
- # ______ , __
- # | |(_) | o /|/ \
- #--+--+-- _|_ _|_ __ |___/ _ __
- #--+--+--/ | || | / \_| \ |/ /
- # | | (_/ |_/|_/\__/ | \_/|__/\___/
- #Linea muy útil descarga todo el directorio mypath de myserver
- #previamente abre una sesión ftp apartir del login username password
- #opciones del wget:
- # -r : modo recursivo
- # -np : No parent no intentara ir a directorios superiores
- # --ftp-user : nombre del usuario para logearse
- # --ftp-password : contraseña respectiva
- #
- #se ejecuta como: ./ftpDownloadPath.sh username password
- if [ $# -ne 2 ]
- then
- echo "Usage: ./$0 userUTM password"
- exit 1
- fi
- wget -r -np --ftp-user=username --ftp-password=password ftp://myserver.com/public_html/mypath
Add Comment
Please, Sign In to add comment