Advertisement
metalx1000

Automatic FTP Bulk Uploader

Jan 12th, 2012
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2. HOST='ftp.server.com'
  3. USER='name'
  4. PASSWD='password'
  5. DIR='/home/user/files/'
  6. REMOTE_DIR='/files/'
  7.  
  8. cd "$DIR"
  9.  
  10. ftp -v -i -n $HOST <<END_SCRIPT
  11. quote USER $USER
  12. quote PASS $PASSWD
  13. cd "$REMOTE_DIR"
  14. mput *
  15. quit
  16. END_SCRIPT
  17.  
  18. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement