Return to Snippet

Revision: 65168
at November 3, 2013 15:12 by ktrout


Initial Code
/***************************
 *  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

Initial URL

                                

Initial Description
simple ftp upload example

Initial Title
ftp upload example

Initial Tags

                                

Initial Language
Bash