Nash's world

How to list cron jobs of all the users

by on Nov.18, 2011, under cool, Programing

while I was doing some server maintenance for a customer last night it required that i find out what cron jobs were in the cron tabs of all the users  on the machine. I found this handy script that will list out all the cron jobs for all the users

#!/bin/bash
for user in $(cut -f1 -d: /etc/passwd)
do echo $user && crontab -u $user -l
echo " "
done
Enhanced by Zemanta

Leave a Reply

*

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

IDL

Member of The Internet Defense League