cronjob
Who knows cronjob?
Can i make cronjob to run (for example) spider.php every 30 minutes? I am going to make search engine's spider which will check links every 30 mins. |
Everyone knows cronjob! ;) You have simply to do
Code:
man crontab Regarding your requirements, you can edit your crontab (crontab -e) and add an entry like this: Code:
*/30 * * * * /path/to/php spider.php |
10.X my friend ;)
|
Now please more practically
if i want to run http://www.xatchmeruk.com/cron_job.php every 30 minutes what i will write in command field. |
I'm sorry, but I don't know much about php. It looks like you have to run a cron job remotely on a web server. The crontab entry on your local machine will be similar to the one above: the time and date fields
Code:
*/30 * * * * /path/to/some/command/here http://www.xatchmeruk.com/cron_job.php |
You'll need the cmd line version of php, ie the one that doesn't rely on being called from/by Apache
|
If I would like to have my cron job consists of a number of commands, what should I do? It seems that I can only have a single command in my crontab for each job!
|
All times are GMT -5. The time now is 01:38 AM. |