Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- HOST='ftp.server.com'
- USER='name'
- PASSWD='password'
- DIR='/home/user/files/'
- REMOTE_DIR='/files/'
- cd "$DIR"
- ftp -v -i -n $HOST <<END_SCRIPT
- quote USER $USER
- quote PASS $PASSWD
- cd "$REMOTE_DIR"
- mput *
- quit
- END_SCRIPT
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement