PDA

View Full Version : How to make/use "crontabs"


Ethan86
02-26-2002, 05:59 PM
Hello,

I'm relatively new to all of this (I just got into PHP 3 weeks ago, MySQL a week), and have come across many problems over the past few weeks, but have usually found answers fairly quickly. However I have not been able to find much support on use of Crontabs. (I realize this is more of a server issue than a PHP issue, but I thought I should still try here.)

I've read on the format that crontabs are used in, and I'm fairly sure that this is what I want:

0,15,30,45 * * * * /usr/local/lib/php /home2/frimsah/public_html/frimsah/login/crontab_offline.php

Every 15 minutes, I'd like it to execute the file "crontab_offline.php". I'm still not entirely clear on what I do with this file (the one with the crontab line) though, and if there's anything else I need to do for it to work.

Help is apreciated.

Thanks,

Ethan86
Frimsah
http://frimsah.milkbag.net/login/

middleground
03-13-2002, 04:31 PM
Can't help if you need to do anything with file, as in my cases all I had to do was call the file, but can help on syntax. This worked on my sites for drupal testing.
--------------------
I just needed a place to stick this so as to not forget:
Syntax for calling a php file in a cron tab-
php /home2/lansber/public_html/blog/cron.php > /dev/null
--------------------
Need php in front, and stuff on end to tell it where to output to. nice if HR would add this to FAQ- I spent many hours digging google search results for this one.