Crontab
Page content
Troubleshooting Crontab Problems
Dump the Environement
add this line to root’s crontab
* * * * * env > ~/cronenv
Load the Environement
env - `cat /var/log/cronenv` /bin/sh
Run your script
./script_with_env_problems.sh
and check it’s output …
sha256: 5aa695cbd618aad046f6b31e1c05dfc7d41db08fb39cbbbf95b6ac3a468d1f8a