#!/bin/sh
#
# test_crontabs
#
# Crontabs aller User ans ULS
##############################
#
if [ $# -ge 2 ]
 then
  DT="$1 $2"
else
  DT=`date '+%d.%m.%y %H:%M:00'`
fi
#
for user in `sort -t: -u -n -k 3,3 /etc/passwd | awk -F: '{print $1}'`
 do
  if crontab -l $user >/dev/null 2>/dev/null
   then
    /usr/local/bin/send_test_value System "Crontab:$user" Crontab $DT "`crontab -l $user `" "_"
 fi
done
