PDA

View Full Version : ioFTPd Scheduler


Bratell
10-06-2003, 02:34 PM
Wouldn't it be nice if this worked:
*/5 * * * EXEC ..\scripts\blaha.exe
instead of having to write:
0 5 10 15 20 25 30 35 40 45 50 55 * * * EXEC ..\scripts\blaha.exe
Just a thought. :p

Mouton
10-06-2003, 02:53 PM
use comas, or it won't work.
0,5,10,15...

it takes *seconds* to write all those down...

it would take more than the sum of all *seconds* we waste writing those for dark0n3 to program such a thing.

Bratell
10-06-2003, 03:09 PM
Originally posted by Mouton
use comas, or it won't work.
0,5,10,15...

it takes *seconds* to write all those down...

it would take more than the sum of all *seconds* we waste writing those for dark0n3 to program such a thing.
The commas wasn't the point, as I'm sure you understood. Time is also not of the essence here. I was writing down a thought, bare with me.

ADDiCT
10-06-2003, 03:13 PM
I have to agree with mouton... it's not like u need to edit your sheduler lines every week.
All needed functionality is provided.

Bratell
10-06-2003, 03:17 PM
Originally posted by ADDiCT
I have to agree with mouton... it's not like u need to edit your sheduler lines every week.
All needed functionality is provided.
Baah! If people like you ruled the world, we should still live in caves! There is something that goes beyond functionality, it's called perfection! Meanwhile, my poor schedule line gets so long.. so stretched thin, I feel it might break. :p

darkone
10-06-2003, 03:43 PM
I guess that I could add support for */x options.. however i'm not exactly sure how ie. linux handles */13 (60 isn't dividable by 13)

Unique
10-06-2003, 05:07 PM
linux? you porting it to linux aswell:confused:

darkone
10-06-2003, 05:20 PM
No.. i'm just trying to keep it similar to unix/linux crontab

dasOp
10-06-2003, 06:52 PM
Originally posted by darkone
I guess that I could add support for */x options.. however i'm not exactly sure how ie. linux handles */13 (60 isn't dividable by 13)

Just round to nearest integer. For the above, scheduler fires at:
0, 13, 26, 39, 52.

Perfection is one thing but I'm sure there are more valid stuff higher prioritized on the TODO. :)