cat  check_crontab.sh 
#!/bin/bash


users=`cat /etc/passwd|awk -F: '{print $1}'`

for u in $users
do

#    echo $u
    crontab -l -u $u >>/dev/null 2>&1 && echo "$u的定时任务"&&crontab -l -u $u 
done