Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Enviar Files para servidor via Bash
- # basic script to send files to webserver without no condition yet
- usern="Nome_do_utlizador" # user name
- doorn="Numero_da_port" # door number
- passw="your_password" # Password
- hostn="Your_host" # ftp.hostname ou ip
- filen="yourfile.whatever" # file to send
- orig="/caminho/de/origem/${filen}" # LocalPath and file name
- dest=${filen} # raiz do site # Server Path or just file
- ftpput -P ${doorn} -u ${usern} -p ${passw} ${hostn} ${dest} ${orig}
- read -p "Press [Enter] to continue ..."
Add Comment
Please, Sign In to add comment