Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dangreenisrael/recover_crontab
A PHP script to recover a destroyed crontab
https://github.com/dangreenisrael/recover_crontab
Last synced: about 2 months ago
JSON representation
A PHP script to recover a destroyed crontab
- Host: GitHub
- URL: https://github.com/dangreenisrael/recover_crontab
- Owner: dangreenisrael
- Created: 2013-07-01T13:09:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-01T13:16:19.000Z (over 11 years ago)
- Last Synced: 2024-10-12T17:36:28.041Z (3 months ago)
- Size: 109 KB
- Stars: 22
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
recover_crontab
===============A PHP script to recover a destroyed crontab under Ubuntu 12.04 +
I ran this on MAC OSX 10.7 under MAMP
For this to work, you must follow the following steps:
1) Run "zgrep -i cron /var/log/syslog*" - This will output a log of your crontab from the last week to the terminal
2) Copy that output into a text file on your local machine
3) Name that textfile 'crontab_log'
4) Change 'USER' to the user for who's cron commands you are trying to recover
5) Run the script in a browser