Skip to content

Instantly share code, notes, and snippets.

@Medalink
Created April 24, 2013 18:05
Show Gist options
  • Save Medalink/5454169 to your computer and use it in GitHub Desktop.
Save Medalink/5454169 to your computer and use it in GitHub Desktop.
List crontab for all users on machine.
#############################################################
# 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