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/?
Ok you are using /etc/crontab, you aren’t really meant to edit that file on most linux systems. You are meant to edit a user specific crontab but I suppose it doesn’t really matter if you want to run the script as root.
To do maintain crontabs correct you generally do:
crontab -e -u root
this opens the default editor with the crontab for the user specified with the -u command.
Oh so thats it, Is there a way to execute my cron code without applying */2 * * * * root /var/www/AddressBook/addBook/protected/yiic Cron >/dev/null on my etc/crontab?