#!/bin/bash
. ~/.bashrc
current_date=`date +%Y-%m-%d`
echo ${current_date}
basepath=$(cd `dirname $0`; pwd)
cd $basepath
FAIL_PATH=/home/work/daiyuanpei/monitor-fail
if [ "`ls -A ${FAIL_PATH}`" = "" ];
then
echo "${FAIL_PATH} is empty"
else
echo "${FAIL_PATH} is not empty"
rm -f /home/work/daiyuanpei/monitor-fail/t_*
echo "emptying folder done"
fi
# 3 19 * * * (cd /home/work/daiyuanpei; bash ./monitor-fail.sh > /home/work/daiyuanpei/ct-out/ct_monitor-fail.out 2>&1 &)