A useful script for crontab (for all users) listings (let's see what running automagically...)

Submitted by donmc on Tue, 09/18/2012 - 19:19

I have been working on a system inherited from several earlier sysadmins, and you have to keep an eye out for cron jobs running for other users - so it's nice to be able to review them all in one hit - just run this on a command line as root:

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done