Posted By

ktrout on 11/03/13


Tagged

download example FTP


Versions (?)

ftp download example


 / Published in: Bash
 

simple ftp download example

  1. /***************************
  2. * download_file.sh *
  3. **************************/
  4. #!/bin/sh
  5. HOST='ftp.users.qwest.net'
  6. USER='yourid'
  7. PASSWD='yourpw'
  8. FILE='testdown.html'
  9. ftp -n $HOST <<END_SCRIPT
  10. quote USER $USER
  11. quote PASS $PASSWD
  12. get $FILE
  13. bye
  14. END_SCRIPT
  15. exit 0

Report this snippet  

You need to login to post a comment.