|
Posted by Shelly on 10/16/07 22:18
"Oliver Grδtz" <oliver.graetz@gmx.de> wrote in message
news:471431C3.9040009@gmx.de...
> Shelly schrieb:
>>
>> The crontab.txt has a line:
>> */1 * * * Sun cronjobs/setRemind.php # repeat every
>> one
>> minute
>>
>> OK, other than the timer firing things, all works well. Initially, it
>> opens
>> the reminder screen in a separate window and does what it should. After
>> that, changing pages does not invoke the check reminder screen. This is
>> as
>> it should be.
>>
>> Now for the problem.
>> The "cron" job should cause a firing every minute (I will set this at
>> something between one and 24 hours later, but it is one minute now for
>> debugging purposes). The problem is that it is not firing or, at least
>> appears not to be firing.
>
> Excuse me if I'm totally wrong since I recall some cron similar problem
> from long ago. I don't know if it was the bitfolge.de script but one of
> the cron format parsers out there wasn't capable of recognising the "/n"
> syntax for "every n". Try if just "*" instead of "*/1" fires and if yes,
> then you have to give it a "5,10,15,..." instead of "*/5".
That didn't work either. I decided to ditch the whole thing and follow the
K.I.S.S. principle AKA Occam's Razor. I put in a javascript function call
to a routine where I open the new window and call a setTimeout by calling
itself. IOW:
function remindTimer() {
var t;
window.open("checkRemind.php");
t = setTimeout("remindTimer()", 60000);
}
This does the trick.
So much trouble for so little needed :-)
Shelly
Navigation:
[Reply to this message]
|