Created
August 15, 2014 14:46
-
-
Save lovellfelix/0a4d634aa5dc5984828c to your computer and use it in GitHub Desktop.
Simple shell script to download file from a FTP Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST=[HOSTNAME] | |
USER=[USERNAME] | |
PASS=[PASSWORD] | |
ftp -inv $HOST << EOF | |
user $USER $PASS | |
lcd /PATH/TO/LOCAL/DIRECTORY | |
mget FILENAME* | |
bye | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment