so.... what would be the line to lets say if I need to execute a PHP script that is, every 2 hours (12 times a day) 7 days a week non stop.
Please help, Thanks.
Also is there a possibility to manage these cron job through PHP. I think POSIX is the way to go, but I could be mistaking big time.
Thanks again for any help
Rilitium
"Share the knowledge"
Annchen wrote:
Hi! I've not been here during weekend, so may be, I'm late with my answer, but anyway I can write you what kind of problems I had with CRON - may be, it will be useful for you one day and will not have to ask like me here a hundred of questions...
So, finally, I wrote in my CRONTAB the line:
45 16 * /usr/local/bin/wget http://www.my_url.com/crontest.php3
where: 45 - minutes, 16 - hours, then - * for day, month, day of week, "/usr/local/bin/wget" - path to WGET on our server, then - space, and finally my URL. My problems were that 1. I tried to run my script not as URL, but defined path to it on the server; 2. That I did not set full path to WGET - it worked without path in UNIX, so it did not come into my mind that it's necessary to set path in CRONTAB.
May be, it will be useful for you :-) Well, I'm still glad that I have done it - it was really important! Thanks one more time for help!