I want to verify if a certain crontab works properly. I have added a job like this:
*/2 * * * * /path_to_my_php_script/info.php >/dev/null 2>&1
I know that i redirect to the null device, but i not sure if the above command is good.
*Edit 1: In my /var/log/syslog every two minutes i have the following error:
(CRON) error (grandchild #2788 failed with exit status 2)
*Edit 2: No errors in logs with this new job:
*/2 * * * * /usr/bin/php /path_to_my_php_script/info.php >/dev/null 2>&1