/ Published in: Bash

simple ftp download example
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*************************** * download_file.sh * **************************/ #!/bin/sh HOST='ftp.users.qwest.net' USER='yourid' PASSWD='yourpw' FILE='testdown.html' ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD get $FILE bye END_SCRIPT exit 0
Comments
