Created
April 24, 2013 18:05
-
-
Save Medalink/5454169 to your computer and use it in GitHub Desktop.
List crontab for all users on machine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
# File: cronjobs.sh | |
# Description: List crontab for all users on machine | |
# | |
# Supported OS: Ubuntu, should work with other distributions | |
# | |
# Author: Eric Percifield | |
# http://www.tge-studio.com | |
# | |
############################################################# | |
for user in $(cut -f1 -d: /etc/passwd) | |
do echo $user && crontab -u $user -l | |
echo " " | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment