View Full Version : dated dirs
there are some script that it will create dated dirs automatically???? /MP3/%m%d for example...
thx
sure, only i don't know how to configure this step...
6. If wanting dated dirs to be created add under [Scheduler]
Newday = 0 0 * * EXEC ..\scripts\ioA\ioA.exe NEWDATE
nice
Open your ioFTPD.ini.
You have to add the NewDay event in the [Scheduler] section.
yes, but what's the meaning of 0 0 etc etc, how i must configure??
rAWfOX
01-14-2004, 10:01 AM
read the documentaions..... all is there
9. SCHEDULER
The scheduler is used to trigger scripts at a given time. The layout in
ioFTPD.ini looks like this:
[Scheduler]
###
# Scheduler
#
# Event = <minutes> <hours> <day of month> <day of week> Command
#
# Internal Commands:
#
# &Reset : Resets upload/download counters
# &Service_Update : Reloads devices and Restarts services, if bind ip
# of service has changed
Reset = 0 0 * * &Reset
Service_Update = 10,30,50 * * * &Service_Update
Setting something to run every 15 mins would be as simple as:
0,15,30,45 * * * ..\scripts\every15mins.exe
..and every 15mins between 0 & 12.. would be;
0,15,30,45 0-11 * * ..\scripts\every15mins-hours0-12.exe
Remember time in scheduler is UTC! Not GMT or CET etc.
UTC is GMT without daylight savings.
For example if you are located in CET timezone, in order to trigger an event
at midnight every day use: EveryDay = 0 22 * * ..\scripts\everyday.exe
because the difference is -2 hours, at least when I'm writing this.
Day of month is between 1 and 31.
Day of week is between 0 and 6, 0 being Sunday.
i am in a GMT zone (+1), the would be:
EveryDay = 0 25 * * ..\scripts\everyday.exe
thx
Well, my timezone is GMT+1 too, but i have only 24 hours per day. Where have you found this 25th hour ?
You should try something like:
EveryDay = 0 23 * * EXEC ..\scripts\everyday.exe
Since it's 23:00 UTC when it's midnight GMT+1.
ehehehehe, oki m8, but i tried and it doesn't work, only with "site newdate" and it creates dated dir 0115, but not automatically. Look my config.:
-> In ioFTPD.ini
[Scheduler]
###
# Scheduler
#
# Event = <minutes> <hours> <day of week> <day of month> Command
#
# Internal Commands:
#
# &Reset : Resets upload/download counters
# &Service_Update : Reloads devices and Restarts services, if bind ip of service has changed
#
Reset = 0 0 * * &Reset
Service_Update = 10,30,50 * * * &Service_Update
Newday = 32 10 * * EXEC ..\scripts\ioTOOLS\ioA\ioA.exe NEWDATE
-> In ioA.cfg
Use_Local_Time_Instead_of_UTC = 1
...
[Newdate]
Newdate_0 = "Mp3|G:\DOWNLOADS\MP3\%M%D|/Mp3/%M%D|I:\incoming\Today_Mp3|0|0"
Newdate_Log = ""%vfs" "%desc" "%phys""
All paths are correctly.
thx!!!
sorry m8, hehe, WORKS FINE YA! it was a problem mine of config!
thx very much for ur help!
intel
03-30-2007, 09:15 PM
I am just confused with the conversion... I am GMT -8 (pacific) and I have
Newday = 5 8 * * EXEC ..\scripts\ioA\ioA.exe NEWDATE
and its not creating the dates...
FTPServerTools
03-31-2007, 11:21 AM
In case you dont figure it out, there is also NewDay.exe which also creates new day(s) and days ahead or hours ahead if you so wish.
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.