Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > Scripting > WarC's scripts

WarC's scripts ioA, Warchive, ZR-Tools

Reply
 
Thread Tools Rate Thread
Old 11-01-2003, 06:17 PM   #1
Junior Member
 
Join Date: Nov 2003
Posts: 25
Default ioA newdate part + symlinks

hi,

I configured ioA to create newdate + TODAY-MP3/0DAY symlinks.. the first day it worked fine, but on the second day the symlinks were not updated... they still linked to the yesterday mp3 directory...


here is my config

Code:
Area=0DAY|0DAY|e:\dmp\0DAY\%M%D|/0DAY/%M%D|0|e:\dmp\TODAY-0DAY
Area=MP3|MP3|e:\dmp\MP3\%M%D|/MP3/%M%D|0|e:\dmp\TODAY-MP3
Area=BOOKS|BOOKS|e:\dmp\BOOKS\%M%D|/BOOKS/%M%D|0|e:\dmp\TODAY-BOOKS
i always have to deleted the symlinks and recreate them with "site newdate"

any1 got a solution?
noob is offline   Reply With Quote
Old 11-01-2003, 06:21 PM   #2
Senior Member
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 427
Default

Classic problem it seems for some

Do you get any errors in debug that dir exist or such. If so symlink is not updated(by design).

If you run newdate in a commandline you can see what it prints for ioFTPD to use. If that looks correct I dunno. Its case sensitive If not mistaken darkone said.
WarC is offline   Reply With Quote
Old 11-01-2003, 06:22 PM   #3
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 535
Default

you maybe should add newdate in ioftpd scheduler

Ex.: Newday = EXEC 0 0 * * ..\scripts\ioA\ioA.exe NEWDATE


have fun
bounty
bounty is offline   Reply With Quote
Old 11-01-2003, 06:35 PM   #4
Junior Member
 
Join Date: Nov 2003
Posts: 25
Default

@bounty:

it's already added in scheduler.. it creates the newdate directories flawless, it's just the symlink which does not get updated

@WarC:

thats what i found in my logs

Code:
11-02-2003 00:01:58 COMMANDLINE     - NEWDATE
11-02-2003 00:01:58 NEWDATE         - arealine= 0DAY|0DAY|e:\dmp\0DAY\%M%D|/0DAY/%M%D|0|e:\dmp\TODAY-0DAY
11-02-2003 00:01:58 NEWDATE         - !vfs:chattr 1 "e:\dmp\TODAY-0DAY" "/0DAY/1102"
11-02-2003 00:01:58 NEWDATE vfs     - !vfs:add 777 0:0 e:\dmp\0DAY\1102
11-02-2003 00:01:58 NEWDATE         - arealine= MP3|MP3|e:\dmp\MP3\%M%D|/MP3/%M%D|0|e:\dmp\TODAY-MP3
11-02-2003 00:01:58 NEWDATE         - !vfs:chattr 1 "e:\dmp\TODAY-MP3" "/MP3/1102"
11-02-2003 00:01:58 NEWDATE vfs     - !vfs:add 777 0:0 e:\dmp\MP3\1102
11-02-2003 00:01:58 NEWDATE         - arealine= BOOKS|BOOKS|e:\dmp\BOOKS\%M%D|/BOOKS/%M%D|0|e:\dmp\TODAY-BOOKS
11-02-2003 00:01:58 NEWDATE         - !vfs:chattr 1 "e:\dmp\TODAY-BOOKS" "/BOOKS/1102"
11-02-2003 00:01:58 NEWDATE vfs     - !vfs:add 777 0:0 e:\dmp\BOOKS\1102
no error like it seems :/
the directorys are all upper case on my server, so it should work
noob is offline   Reply With Quote
Old 11-01-2003, 06:50 PM   #5
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 535
Default

did you followed this documentation ?

http://www.ioftpd.com/documentation/03-vfs.php#symlink
bounty is offline   Reply With Quote
Old 11-01-2003, 06:56 PM   #6
Junior Member
 
Join Date: Nov 2003
Posts: 25
Default

i don't think there is a variable for month&day in ioftpd
eg. site chattr +l "TODAY-MP3" "/MP3/%M%D"

so ioA must do the job :banana:
noob is offline   Reply With Quote
Old 11-10-2003, 03:42 PM   #7
Junior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 5
Default

Any resolution to this? I also have problems with the symlinks getting updated.
jbeezer is offline   Reply With Quote
Old 11-10-2003, 10:06 PM   #8
Junior Member
 
Join Date: Nov 2003
Posts: 25
Default

yes, the problem is still there
also a option to set the owner for newdate directories would be great.. nobody/nogroup doesn't look good
noob is offline   Reply With Quote
Old 11-11-2003, 01:44 AM   #9
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 500
Default

I've had this before, delete the symlink and it will hopefully recreate it the next day correctly and start updating correctly again.
No idea why, but it worked for me.
EwarWoo is offline   Reply With Quote
Old 11-12-2003, 12:54 PM   #10
Member
ioFTPD Registered User
 
Join Date: Feb 2003
Posts: 77
Default

Quote:
Originally posted by EwarWoo
I've had this before, delete the symlink and it will hopefully recreate it the next day correctly and start updating correctly again.
No idea why, but it worked for me.
n00b --> it works for you ?
MadCowAss is offline   Reply With Quote
Old 11-12-2003, 01:06 PM   #11
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,462
Default

This might be due to the usage of UTC where localtime is needed.

Read this thread to know what to change.
Harm is offline   Reply With Quote
Old 11-13-2003, 07:28 AM   #12
Junior Member
 
Join Date: Nov 2003
Posts: 25
Default

no sorry, problem still exists

i own a server in the UK, and i want it to create newdate directories at 0:00 german time...

i tried to use Use_Locale_Time_Instead_of_UTC=1
and set scheduler to 23:00, but no luck so far :/
noob is offline   Reply With Quote
Old 11-13-2003, 08:26 AM   #13
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,462
Default

Then you have a problem.

To trigger the newdate event at 0:00 GMT+1 (german time), you have to use 0 23 * * in the scheduler.

But, at 23:00 UTC, both UTC and UK times are still "yesterday" (german time).

You might want to setup your server to use GMT+1 as localtime.
Harm is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 10:35 PM.