ftp 打包
#!/bin/bash
REPPATH=/home/itownet
cd $REPATH
LOFFILE=ftp.log
ftp -n >>$LOFFILE<
open 10.230.14.3
user ftpuser &report
cd itsm
put *report.log
bye
EOF
发送邮件
LANG=zh_CN
export LANG
export MAILRC=/home/ftpuser/itsm/zy.rc
today=`date +"%Y%m%d"`
nowtime=$(date +%H)
cd /home/ftpuser/itsm
mail -s "test mail" xxx@163.com -a *.tar.gz < maillist.txt
rm $today$name.tar.gz
zy.rz文件内容
set from=pcreort@163.com smtp=163.com smtp-auth-user=pcreport@163.com smtp-auth-password=123456 smtp-auth=login
阅读(2136) | 评论(0) | 转发(0) |