Skip to content

Instantly share code, notes, and snippets.

@naosim
Created October 13, 2014 22:19
Show Gist options
  • Save naosim/73c1ccde741523b303b9 to your computer and use it in GitHub Desktop.
Save naosim/73c1ccde741523b303b9 to your computer and use it in GitHub Desktop.
FTPでファイルをアップするスクリプトです。
#!/bin/sh
SERVER=$1
USER=$2
PASS=$3
DIR=$4
FILE=$5
ftp -n <<END
open $SERVER
user $USER $PASS
cd $DIR
binary
prompt
mput $FILE
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment