WarC's scripts ioA, Warchive, ZR-Tools |
01-14-2004, 08:27 AM
|
#1
|
Member
Join Date: Dec 2003
Posts: 50
|
dated dirs
there are some script that it will create dated dirs automatically???? /MP3/%m%d for example...
thx
|
|
|
01-14-2004, 08:28 AM
|
#2
|
Too much time...
Ultimate Scripter
Join Date: Jul 2003
Posts: 1,430
|
ioA does that.
|
|
|
01-14-2004, 08:35 AM
|
#3
|
Member
Join Date: Dec 2003
Posts: 50
|
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
|
|
|
01-14-2004, 08:37 AM
|
#4
|
Too much time...
Ultimate Scripter
Join Date: Jul 2003
Posts: 1,430
|
Open your ioFTPD.ini.
You have to add the NewDay event in the [Scheduler] section.
|
|
|
01-14-2004, 08:58 AM
|
#5
|
Member
Join Date: Dec 2003
Posts: 50
|
yes, but what's the meaning of 0 0 etc etc, how i must configure??
|
|
|
01-14-2004, 10:01 AM
|
#6
|
Senior Member
Join Date: Aug 2003
Posts: 148
|
read the documentaions..... all is there
Quote:
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.
|
|
|
|
01-15-2004, 05:14 AM
|
#7
|
Member
Join Date: Dec 2003
Posts: 50
|
i am in a GMT zone (+1), the would be:
EveryDay = 0 25 * * ..\scripts\everyday.exe
thx
|
|
|
01-15-2004, 05:29 AM
|
#8
|
Too much time...
Ultimate Scripter
Join Date: Jul 2003
Posts: 1,430
|
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:
Code:
EveryDay = 0 23 * * EXEC ..\scripts\everyday.exe
Since it's 23:00 UTC when it's midnight GMT+1.
|
|
|
01-15-2004, 05:39 AM
|
#9
|
Member
Join Date: Dec 2003
Posts: 50
|
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
Quote:
[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
Quote:
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!!!
|
|
|
01-15-2004, 05:47 AM
|
#10
|
Member
Join Date: Dec 2003
Posts: 50
|
sorry m8, hehe, WORKS FINE YA! it was a problem mine of config!
thx very much for ur help!
|
|
|
03-30-2007, 09:15 PM
|
#11
|
Member
ioFTPD Foundation User
Join Date: Nov 2003
Posts: 68
|
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...
|
|
|
03-31-2007, 11:21 AM
|
#12
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
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.
|
|
|
Thread Tools |
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:23 PM.
|