how to run cron jobs every 3 mins

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jigaruu
Forum Newbie
Posts: 21
Joined: Wed Feb 18, 2004 11:46 pm
Contact:

how to run cron jobs every 3 mins

Post 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
phuts
Forum Newbie
Posts: 15
Joined: Thu Feb 19, 2004 12:29 am
Location: Ohio, USA

Post 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.
jigaruu
Forum Newbie
Posts: 21
Joined: Wed Feb 18, 2004 11:46 pm
Contact:

Post by jigaruu »

OK thank u phuts ur's code worked.
Post Reply