Created
December 26, 2016 01:29
-
-
Save miceno/43c52078989b7a8d5efd288878518708 to your computer and use it in GitHub Desktop.
Crontab debugging
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
Add | |
* * * * * env > ~/cronenv | |
to your crontab, let it run once, turn it back off, then run | |
env - `cat ~/cronenv` /bin/sh | |
And you are now inside a sh session which has cron's environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment