Friday, October 1, 2010

list all cron jobs for all users

quite good post in StackOverflow:

as root:

i modified the original post to show the user's username:

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

dont forget to also:

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

No comments:

Post a Comment