/ Published in: Bash
simple ftp upload example
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*************************** * upload_file.sh * **************************/ //upload #!/bin/sh HOST='yourhostftp.users.qwest.net' USER='yourid' PASSWD='yourpw' FILE='error.log' ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE bye END_SCRIPT exit 0