Skip to content

Instantly share code, notes, and snippets.

@b-oern
Created November 5, 2013 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b-oern/7323860 to your computer and use it in GitHub Desktop.
Save b-oern/7323860 to your computer and use it in GitHub Desktop.
Unter Linux per Shell eine Datei auf einen FTP-Server laden
#!/bin/sh
USERNAME=<USERNAME>
PASSWORD=<PASSWORD>
SERVER=<SERVER>
ftp -n -i $SERVER <<EOF
user $USERNAME $PASSWORD
passive
cd /html/bsnx/
mput <YOUR_FILE>.txt
quit
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment