You are here: Re: "Pseudo" cron job « PHP Programming Language « IT news, forums, messages
Re: "Pseudo" cron job

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация