Skip to content

Instantly share code, notes, and snippets.

@miceno
Created December 26, 2016 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miceno/43c52078989b7a8d5efd288878518708 to your computer and use it in GitHub Desktop.
Save miceno/43c52078989b7a8d5efd288878518708 to your computer and use it in GitHub Desktop.
Crontab debugging
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