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

By donmc, 18 September, 2012

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