StarDog's scripts ioZS, newday |
10-21-2003, 08:46 AM
|
#1
|
Junior Member
ioFTPD Foundation User
Join Date: Feb 2003
Posts: 10
|
IOZS New Day Creation...
K, ive been having this problem for like a month, the script works fine, it creates dated links, and my symlinks work also, But its always exactly 24 hrs behind!!!, Like today at 12:00am GMT-4:00 it will create 1021 instead of 1022, heres my set-up from IOZS.ini:
[NEWDAY]
DATED_DIR=C:\MP3\|/MP3|d:\ioFTPD\site\MP3-Today,C:\0-DAY\|/0-DAY|d:\ioFTPD\site\0-DAY-Today
DATE_FORMAT=%m%d
;ioNewDay calculates time based on localtime, ioFTPD scheduler is based on UTC time.
TIMEOFFSET=-4
VFS_CHMOD=777
VFS_CHOWN=100:1
DAYS_OLD=3
CLOSED_VFS_CHMOD=755
and heres my setup from ioftpd.ini:
NewDay = 0 4 * * D:\ioFTPD\scripts\ioZS\ioNewDay.exe
|
|
|
10-21-2003, 08:48 AM
|
#2
|
Junior Member
ioFTPD Foundation User
Join Date: Feb 2003
Posts: 10
|
btw...
Im using the newest version of IOZS and version 5+ of ioftpd, forgot to post in the first thread hehe.
|
|
|
10-21-2003, 10:30 AM
|
#3
|
Senior Member
Join Date: Jan 2003
Posts: 231
|
TIMEOFFSET=-4
d0h
|
|
|
10-21-2003, 01:51 PM
|
#4
|
Junior Member
ioFTPD Foundation User
Join Date: Feb 2003
Posts: 10
|
and.... I have -4 set already and still no go, it creates files at 9pm now, its now 27 hrs behind ;]
|
|
|
10-22-2003, 02:27 AM
|
#5
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
If you dont need the symlinks you can use NewDay from my site, it can create days ahead and it can change permissions for x days ahead nad back. The ease is that you just set it to create a day ahead (or more if you so wish) and simply put it in the scheduler.
|
|
|
10-22-2003, 11:02 AM
|
#6
|
Senior Member
FlashFXP Registered User ioFTPD Scripter
Join Date: Oct 2001
Posts: 236
|
Try changing DATE_FORMAT to something like %H%M, this will give you the time and then change the offset value to add however many hours you need to make it think its the next day..Oh, and then don't forget to change the DATE_FORMAT value back.
|
|
|
10-23-2003, 07:46 PM
|
#7
|
Junior Member
ioFTPD Foundation User
Join Date: Feb 2003
Posts: 10
|
Still a No, Go ...
K, Ive tried everything, still a no go, HEres my exact layout, should I edit my ioftpd.ini or iozs.ini to correct this problem, and my TImezone is GMT-4:00 if that helps, this is drivin me nutz
[NEWDAY]
DATED_DIR=C:\MP3\|/MP3|d:\ioFTPD\site\MP3-Today,C:\0-DAY\|/0-DAY|d:\ioFTPD\site\0-DAY-Today
DATE_FORMAT=%m%d
;ioNewDay calculates time based on localtime, ioFTPD scheduler is based on UTC time.
TIMEOFFSET=+1
VFS_CHMOD=777
VFS_CHOWN=100:1
DAYS_OLD=3
CLOSED_VFS_CHMOD=755
It creates Directorys Fine, Only their 1 day behind, exactly 24hrs, the sym links work fine also, but like I said, right now its 1023, @ midnight it will create 1023, is their anything I need to change either in IOZS or ioFTPD.ini , here my .ini line :
NewDay = 0 0 * * D:\ioFTPD\scripts\ioZS\ioNewDay.exe
my timezone is GMT -4:00, any ideas on how to fix this ???
thx
|
|
|
10-24-2003, 05:24 AM
|
#8
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
Ok this is the beginners solution...
make 24 lines in your scheduler:
Do0000 = 0 0 * * EXEC c:\windows\system32\cmd.exe /c time /t >>0000.txt
Do0100 = 0 0 * * EXEC c:\windows\system32\cmd.exe /c time /t >>0100.txt
Do0200 = 0 0 * * EXEC c:\windows\system32\cmd.exe /c time /t >>0200.txt
Do0300 = 0 0 * * EXEC c:\windows\system32\cmd.exe /c time /t >>0300.txt
etc... until you've done them on every hour.
Stay around then untill your clock turns over and a new day starts and just look which files are created. The latest is the one you need to put your normal newday things in.
|
|
|
10-24-2003, 05:50 AM
|
#9
|
Senior Member
Join Date: Jan 2003
Posts: 231
|
You could also just make a dir at 0:00, and look at the timestamp on it. (or any other time if you have some basic math knowledge )
Then youll know the utc time @ 0:00.
Put scheduler to that.
Iozs uses localtime so +0 offset would work just fine.
It really aint that hard :/
And if it still makes wrong dirs, maybe make a crappy newday site command so you can try it using that site command.
Either way its quite easy so dunno why ya cant get it to run yourself.
|
|
|
10-25-2003, 10:21 PM
|
#10
|
Junior Member
ioFTPD Foundation User
Join Date: Feb 2003
Posts: 10
|
;p
My only problem was I basically didnt now how to put my timezone, on windows it says in GMT-4:00 so i assumed -4 would work,(wonder where i got that idea) anyways I decided to try -20 just to see what happenened and now it works ;] thx for your guys input.
|
|
|
10-25-2003, 11:24 PM
|
#11
|
Junior Member
Join Date: Oct 2003
Posts: 25
|
i believe the actual trick is the fact that newday is backwards. i'm -6 GMT but what i have to use is actually +6 for timeoffset.
|
|
|
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
|
|
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
View panes messed up
|
ftpscanner |
General Discussion |
3 |
11-08-2004 06:42 PM |
All times are GMT -5. The time now is 08:45 PM.
|