PDA

View Full Version : [Fixed] weekday and daymonth sheduler bug


toki
10-29-2003, 05:31 AM
hallo there,

i am using ioFTPD 5.2.10r with ioA, ioZS, ioGui and ioGroups in latest versions...

now:

i tried to use weeklyset (from ioA) to give credits to users on the 1. of every month.

started testing today (October 29th) with
credits = * * * * EXEC ..\scripts\ioA\ioA.exe weeklyset

well this worked... but setting * * * 29 didnt and any other combination up to 0-9999 also didnt work. so i think that day of month is something wrong...

also: what happens if day of week is 5 and day of month is 10 and it would work like it has to... will io wait for a combination of exactly 5/week AND 10/month to execute?

and : anyone else having problems with weeklyset like:

site weekly --> ok file displayed
site weeklyset --> ok all weeklysets are done
site weekly <user> 0,10000 --> only help displayed .... nothing is written to the file.

thx in advance

edit: atm i am testing out the day of the week settings

edit: also doesnt work here...

Mouton
10-29-2003, 08:32 AM
Originally posted by cunhell
also: what happens if day of week is 5 and day of month is 10 and it would work like it has to... will io wait for a combination of exactly 5/week AND 10/month to execute?yes

Originally posted by cunhell
edit: atm i am testing out the day of the week settings

edit: also doesnt work here... U restarted io each time u changed the scheduler settings ? a rehash won't do, u need to restart.

toki
10-29-2003, 09:16 AM
always restart. shutdown + start

Mouton
10-29-2003, 01:47 PM
Seems to be a bug. Moving to Bugs forum.

Scheduled events:

Day_Stats = 12 18 * * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 13 18 * 29 EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 14 18 0 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 15 18 1 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 16 18 2 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 17 18 3 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 18 18 4 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 19 18 5 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 20 18 6 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 21 18 7 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 22 18 wednesday * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 23 18 Wednesday * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 24 18 * 29th EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 25 18 * 28 EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 26 18 * 30 EXEC ..\scripts\ioBanana.exe daystats

Only 18:12 (the 1st) worked.
10-29-2003 18:12:02 DAYSTATS: "Launch daystats"

None of the others seems to have been trigered.

Care to have a look in debug dark ?

toki
10-30-2003, 05:41 AM
was looking for my thread... thought it was deleted... *g*

thx guys for help

darkone
10-30-2003, 06:17 AM
Originally posted by Mouton
Seems to be a bug. Moving to Bugs forum.

Scheduled events:

Day_Stats = 12 18 * * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 13 18 * 29 EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 14 18 0 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 15 18 1 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 16 18 2 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 17 18 3 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 18 18 4 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 19 18 5 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 20 18 6 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 21 18 7 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 22 18 wednesday * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 23 18 Wednesday * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 24 18 * 29th EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 25 18 * 28 EXEC ..\scripts\ioBanana.exe daystats
Day_Stats = 26 18 * 30 EXEC ..\scripts\ioBanana.exe daystats

Only 18:12 (the 1st) worked.
10-29-2003 18:12:02 DAYSTATS: "Launch daystats"

None of the others seems to have been trigered.

Care to have a look in debug dark ?

Each item must have unique name (it's made like this, to allow rehashing in the future)

Mouton
10-30-2003, 10:11 AM
Day_Stats1 = 04 15 * * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats2 = 05 15 * 30 EXEC ..\scripts\ioBanana.exe daystats
Day_Stats3 = 06 15 0 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats4 = 07 15 1 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats5 = 08 15 2 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats6 = 09 15 3 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats7 = 10 18 4 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats8 = 11 15 5 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats9 = 12 15 6 * EXEC ..\scripts\ioBanana.exe daystats
Day_Stats10 = 13 15 7 * EXEC ..\scripts\ioBanana.exe daystats

Same results. Only Day_Stats1 is executed.

darkone
10-31-2003, 05:47 AM
It seems that they're in following order:

<MIN> <HOUR> <DOM> <DOW> .. however there's one minor bug in it, DOM = DOM - 1. So day 31 should be written as 30... will be fixed in next version tho

Mouton
10-31-2003, 10:36 AM
How about changing the order back to <DOW> <DOM> so we don't have to change default .ini, and tell to everyone who ask that their old .ini has a typo in it... Would be simpler. :)

Linkster
10-31-2003, 11:53 AM
i agree...technically, the logical order is MIN, HOUR, DOW, DOM.

Mouton
11-01-2003, 02:29 PM
Ok. Fixed in 5.2.12r.

Event = <minutes> <hours> <day of month> <day of week>

day of week starts with 0 = sunday.