I am trying to run a cron job in Linux with following command:
crontab -e
typing the following details and saving it
MAILTO="[email protected]"
00 01 * * * /usr/local/bin/php /var/www/html/cron.php > /dev/null 2>&1
I am saving this cron job. But it's not running; I'm not getting any output in mail. I don't know how to get details of the cron job which ran. Or is there a better way to run the cron job?