cat test.sh
#/bin/bash
cron_name=$1
id=`mysql -uroot -psss xxl_job -e "select id from xxl_job_info where job_desc='"$cron_name"';"|sed 1d`
mysql -uroot -psss xxl_job -e "select * from xxl_job_log where job_id=$id and trigger_time > SUBDATE(now(),INTERVAL 5 MINUTE) and trigger_code=500;"|sed 1d|wc -l