How to list all cron entries on a WHM/cPanel based servers
Submitted by vinayras on Sat, 08/04/2012 - 19:51
Ever wondered how to list all the cron entries of all users on WHM/cPanel based servers
I have been trying to find a way to list all cron entries of my clients just to make sure things are in proper place.
Here is the small piece of code that helps
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
crontab -l helps in listing root cron entries only. It does not list cron entries of users created through WHM interface.
- vinayras's blog
- 8958 reads