View Full Version : [Filled] schedular credit for group
Is there any person out there that might want to do a little script.
Script is to ppl who needs to set an amount of credits each day/week/month for
a group. Same as ioA's weeklyset but ioA cant set credits for a group.
When time come for group to get new/more credits script should have two options.
1th leave old credits and add new(old+new).
2th erase old credits and add new(old-old+new).
wooolF[RM]
01-20-2004, 09:33 AM
Originally posted by odd
When time come for group to get new/more credits script should have two options.
1th leave old credits and add new(old+new).I would like to see something like that too :) and I think there are more people that wish to see it come true ;)
Mouton
01-20-2004, 10:01 AM
give_grp_credits.bat:
@echo !change =Admins CREDITS +102400
ioFTPD.ini:
give_grp_credits = 0 0 * 0 EXEC ..\scripts\give_grp_credits.bat
= Sunday midnight, give an additionnal 100MB to all users in group Admins.
0 0 * * would be every day
0 0 1 * would be every month
If you want to remove old credits and only give 100MB, remove the +
@echo !change =Admins CREDITS 102400
Amazing what u can do with a 1 line .bat, isn't it.
Very nice. Thx Mouton thats good enough for me. :)
wooolF[RM]
01-20-2004, 02:02 PM
hrmpf... ez nuf :D thnx for the "solution" :banana:
wooolF[RM]
01-25-2004, 07:05 PM
ioftpd.ini under [Scheduler]
give_grp_credits = 0 0 * * 1 EXEC ..\scripts\give_grp_credits.bat
[00:59] ioSS daystats: Next day=26 & weekday=Monday
[00:59] endOfWeek... displaying wkstats
nothing happend ... I waited for 10 mins more... got this on IRC :
-:: error ::- 01-26-2004 01:00:02 Scheduler event 'give_grp_credits' returned error.
:(
edit : forgot to add that credits were not added to any of the users :x
wooolF[RM]
01-26-2004, 04:55 PM
thnx to Mouton's help on IRC I've "fixed" the problem by opening my eyes...
0 0 * * 1 (I'm used to *nix cronjob format) should be 0 0 * 0
also I found out that description of how the scheduler in ioFTPD works is not proper. It should be like this:
# Scheduler
#
# ioftpd cronjob format is x1 x2 x3 x4 where
# x1=minutes
# x2=hours
# x3=day of month
# x4=day of week
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.