shell 下 ftp自动上传文件的脚本
#!/bin/sh
export file=123456
ftp -n<<EOF
open yourhost
user backup ******
binary
cd /home/backup
lcd /home/stuff/backup
prompt
put ${file}.txt
close
bye
EOF
Written by gegewan on 三月 18th, 2009 with
no comments.
Read more articles on FreeBSD/Linux.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article