1234567891011121314151617 |
- #!/bin/sh
- HOST=192.168.50.108
- USER=backupftp
- PASSWD=0000
- FILE=test234.log
-
- ftp -v -n $HOST <<END_SCRIPT
- user $USER $PASSWD
- binary
- hash
- cd /files
- lcd C:\\Users\\User\\Desktop\\ftp
- prompt
- put $FILE
- bye
- END_SCRIPT
- echo "commit to ftp successfully"
|