Skip to content

Instantly share code, notes, and snippets.

@tavy315
Created September 25, 2017 13:15
Show Gist options
  • Save tavy315/ee3b9953b73fafdfd08b47fc07f873a7 to your computer and use it in GitHub Desktop.
Save tavy315/ee3b9953b73fafdfd08b47fc07f873a7 to your computer and use it in GitHub Desktop.
This script will loop over each user name listing out their crontab
#!/bin/bash
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment