Page 1 of 1

how to run cron jobs every 3 mins

Posted: Wed Feb 18, 2004 11:46 pm
by jigaruu
i have to run a simple php file which does mails every three mins, so i got the funda to use the cron job, but i was not getting how to use the cron job, so can any one please give me the command to be written in the cron file.

thanks in advance.

jigar

Posted: Thu Feb 19, 2004 12:29 am
by phuts
You may want to check out http://www.phpfreaks.com/print.php?cmd= ... &tut_id=28

0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/local/bin/php /home/user/crons/cronjob.php

I believe this is the format for three-minute intervals every day.

Posted: Thu Feb 19, 2004 1:25 am
by jigaruu
OK thank u phuts ur's code worked.