Ive created a cron task at my commands folder named CronCommand.php
and I try executing that particular code on my terminal using pathtomyprotectedfolder/ .yiic Cron
and it executes smoothly, but when I want to run it by schedule and put it inside my crontab file at /etc/crontab It didnt work.
This is my code at crontab.
*/2 * * * * /usr/bin/php /var/www/AddressBook/addBook/protected/./yiic Cron cron >/dev/null
I want to run it every 2 minutes, Am I doing the right syntax? Im using Linux, and Is there a way to execute this command every 2 minutes without writing inside the crontab file at my etc/crontab/?