#!/bin/bash
path=/app/data
#echo $path
date=`date "+%Y%m%d"`
dir=$path/$date
size=`/usr/bin/du -sh $dir|awk '{print $1}'`
#echo $size
size=${size/M/}
if [ $size -gt 600 ]
then
echo "size>600"
/usr/bin/python ./mail.py "抓取图片可能异常" "抓取图片可能异常"
else
echo "ok";
fi