1234567891011121314151617 |
- #!/bin/sh
- HOST=192.168.50.108
- USER=backupftp
- PASSWD=0000
- FILE=ub1.log
-
- ftp -v -n $HOST <<END_SCRIPT
- user $USER $PASSWD
- binary
- hash
- cd /files
- lcd /home/gs1801/wolf/testftp/
- prompt
- put $FILE
- bye
- END_SCRIPT
- echo "commit to ftp successfully"
|