Skip to content

Instantly share code, notes, and snippets.

@eriwen
Last active February 14, 2016 06:17
Show Gist options
  • Save eriwen/1913107 to your computer and use it in GitHub Desktop.
Save eriwen/1913107 to your computer and use it in GitHub Desktop.
FTP Upload via shell
ftp -n -v $HOST << EOT
ascii
user $USER $PASSWD
prompt
cd /
put $LOCAL_SOURCE $TARGET_FILE
bye
EOT
sleep 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment