提取数据

#!/bin/bash
cd /home/mozisys/mozi171206/fastdfs_storage_data1/data

for i in `cat /tmp/b.txt`; do
\cp -rf ${i} /tmp/qushu && echo "weiman:${i}" >> /tmp/qushuo-yes.log || echo "weiman:${i} check fail" >> /tmp/qushuo-no.log

done


zip -r /tmp/qushu.zip /tmp/qushu
echo "取数" > /tmp/message.txt

mail -s "取数" -a /tmp/qushu.zip weiman@happycfc.com,jinrongrong@happycfc.com < /tmp/message.txt

posted @ 2019-08-28 14:30  redis3389  阅读(244)  评论(0编辑  收藏  举报