This is a discussion on "CRON jobs ---HELP!" within the PHP Forum section. This forum, and the thread "CRON jobs ---HELP! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
CRON jobs ---HELP!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
CRON jobs ---HELP!
I am getting very confused with creating a cron job, i have never done it before and i want to learn how to do it.
I have been told by my web host i need to run a php script to call CRON and make it grab the awstats text files. For example the text file will look like this. 62007.cocoonfxmedia.co.uk.txt If the directory /folder1/folder2/awstats******.cocoonfxmedia.co.uk.txt What would the script be to pull the lasted file? any assistance will be wonderful. |
|
|
|
#2
|
|||
|
|||
|
Re: CRON jobs ---HELP!
Jobs that run to a timed pattern (cron jobs) are usually set up using the crontab command which lets you edit them into a file in a particular format, then triggers a service (known as a damon on Unix and Linux systems) to oversee their running when necessary.
I've written more about crontab here where there is a longer description and some examples Reading the information you have given, it looks like you need to run a cp or mv command to copy or move your log file to a known location ... the details of which would depend, as you have indicated, on the locations / names of the files concerned. It's much easier (I find), by the way, to use complete absolute path names in all commands within your crontab file than to work out your current directory and then go relative. |
![]() |
| Tags |
| cron |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| jobs jobs jobs jobs!!! | recruiterz | Job Opportunities | 0 | Aug 2nd, 2006 08:55 |
| Cron jobs? | djme | Databases | 4 | Mar 31st, 2006 19:46 |