Help with cron file

Hi everyone,

I need some help from the unix skills here to make sure I have a cron file correct. It should:

run the following php scripts at intervals:

cron.php every 15 minutes
cron_bounce.php every 12 hrs
cron_responder.php every 60 minutes
cron_pop.php every 30-60 minutes

my cron file looks like this and I think it might have some mistakes:

============

#!/usr/local/lib/php -q
15,30,45,59 * * * * /www/htdocs/12all/admin/cron.php
0 0,12 * * * /www/htdocs/12all/admin/cron_bounce.php
0 0-23 * * * /www/htdocs/12all/admin/cron_responder.php
0,30 * * * * /www/htdocs/12all/admin/cron_pop.php

====================

Does it look right, or how should it look?

Thanks for the help.

It looks fine except this line should not be there - that is for a script file.

#!/usr/local/lib/php -q

Use crontab -e to open crontab editor and use this. I don't know what php -q does, so I did not use it below, but you probably could. And the top line (#!/usr/local/lib/php -q) has no place in a crontab-file.

Jluyt,

Although Indo1144's example will work fine with the OS being used on his/her computer, it may not on yours (which is why you should state the OS and version you are using in all questions). Check your man pages for cron or crontab that the 'steps' can be used (where indo1144 used /15 for every 15 minutes).

red hat linux enterprize