PHP: Generate Random Number
July 21, 2017
Mautic: Fix Upgrade Problems
July 26, 2017

 

Check crontab environmental variables

* * * * * env > env_dump.txt

 

less env_dump.txt

HOME=/root
LOGNAME=root
PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
LANG=en_US.UTF-8
SHELL=/bin/sh
PWD=/root

 

Update to Sync them.

# echo PATH=$PATH > tmp.cron
# echo >> tmp.cron
# crontab -l >> tmp.cron
# crontab tmp.cron

Leave a Reply

Your email address will not be published. Required fields are marked *