Skip to content

Instantly share code, notes, and snippets.

@lovellfelix
Created August 15, 2014 14:46
Show Gist options
  • Save lovellfelix/0a4d634aa5dc5984828c to your computer and use it in GitHub Desktop.
Save lovellfelix/0a4d634aa5dc5984828c to your computer and use it in GitHub Desktop.
Simple shell script to download file from a FTP Server
#!/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