On jeudi, mars 28, 2002, at 02:33 , Jake McHenry wrote:
> Does anyone know of a way that I can view the crontab entries
> for all users on the system, instead of doing
> crontab -u user -l for each user?
Hi !
Try this as root :
#!/bin/sh
cat /etc/passwd | cut -d':' -f1 | while read username; do
crontab=/var/spool/cron/$username
if [ -f "$crontab" ]; then
echo Cron for $username:
cat $crontab
echo
else
echo No cron for user: $username
fi
done
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list