Old 01-14-2004, 08:27 AM   #1
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Default dated dirs

there are some script that it will create dated dirs automatically???? /MP3/%m%d for example...

thx
Xn3t is offline   Reply With Quote
Old 01-14-2004, 08:28 AM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

ioA does that.
Harm is offline   Reply With Quote
Old 01-14-2004, 08:35 AM   #3
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Default

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
Xn3t is offline   Reply With Quote
Old 01-14-2004, 08:37 AM   #4
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Open your ioFTPD.ini.
You have to add the NewDay event in the [Scheduler] section.
Harm is offline   Reply With Quote
Old 01-14-2004, 08:58 AM   #5
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Default

yes, but what's the meaning of 0 0 etc etc, how i must configure??
Xn3t is offline   Reply With Quote
Old 01-14-2004, 10:01 AM   #6
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

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.
rAWfOX is offline   Reply With Quote
Old 01-15-2004, 05:14 AM   #7
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Question

i am in a GMT zone (+1), the would be:

EveryDay = 0 25 * * ..\scripts\everyday.exe

thx
Xn3t is offline   Reply With Quote
Old 01-15-2004, 05:29 AM   #8
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

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.
Harm is offline   Reply With Quote
Old 01-15-2004, 05:39 AM   #9
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Default

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!!!
Xn3t is offline   Reply With Quote
Old 01-15-2004, 05:47 AM   #10
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Default

sorry m8, hehe, WORKS FINE YA! it was a problem mine of config!

thx very much for ur help!
Xn3t is offline   Reply With Quote
Old 03-30-2007, 09:15 PM   #11
intel
Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 68
Default

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...
intel is offline   Reply With Quote
Old 03-31-2007, 11:21 AM   #12
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

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.
FTPServerTools is offline   Reply With Quote
Reply

Tags
/mp3/%m%d, automatically, dated, dirs, thx

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Screen keeps popping up ep2002 General Discussion 5 04-15-2005 04:45 AM


All times are GMT -5. The time now is 09:23 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)