Go Back   FlashFXP Forums > > > >

NeoXed's scripts nxAutoNuke, nxTools, etc.

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-19-2013, 05:46 AM   #1
MONGi
Member
 
Join Date: May 2012
Posts: 71
Default Problems with "closedate" of NX-Tools

Hello again to another thread

I`m using ioFTPD-v7.7.3 + ioNiNJA.1.0.Beta4.2012-10-02 + nxTools-v1.2.1 + nxAutoNuke-v2.5.1, but it is already known.

The problem is at this time nxTools.
Newdate section work, it will create new folders.
Close Date does not work, existing folders are not deleted.

My nxTools settings (for testing):
set newdate(Default) {
{__TEMPORARY {New __TEMPORARY} {/__TEMPORARY/%M.%D} {D:/_TEMPORARY/%M.%D} {D:/_TEMPORARY/Today-TEMPORARY} True 0 0 0 777}
{__TEMPORARY {Close __TEMPORARY} {/__TEMPORARY/%M.%D} {D:/_TEMPORARY/%M.%D} {D:/_TEMPORARY/Yesterday-TEMPORARY} False -1 0 0 555}
}
#
# - Rather then closing the previous date directories at the same time as creating the next days,
# you can schedule a separate newdate area to close the directories at a later time.
# - Scheduler: nxCloseDate = 0 1 * * TCL ..\scripts\nxTools\nxUtilities.tcl NEWDATE CloseDate
#
set newdate(CloseDate) {
{__TEMPORARY {Close __TEMPORARY} {/__TEMPORARY/%M.%D} {D:/_TEMPORARY/%M.%D} {D:/_TEMPORARY/Yesterday-TEMPORARY} False -1 0 0 555}
}

My ioFTPD settings (scheduler):
#The newdate even creates dated directories and/or today symlinks. You can
#also specify the date area with a parameter, if you want to trigger a specific
#area. Refer to the configuration file (nxTools.cfg) for more details on this.
nxNewDate = 0 23 * * TCL ..\scripts\nxTools\nxUtilities.tcl NEWDATE

# - Rather then closing the previous date directories at the same time as creating the next days,
# you can schedule a separate newdate area to close the directories at a later time.
nxCloseDate = 0 23 * * TCL ..\scripts\nxTools\nxUtilities.tcl NEWDATE CloseDate

What have I missed or done wrong?
There is no error generated in the log.

Greetings,
Mongi

Last edited by MONGi; 02-19-2013 at 05:52 AM.
MONGi is offline   Reply With Quote
Old 02-20-2013, 02:24 AM   #2
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Folders aren't deleted, they are just marked read-only (or whatever perms you set like say 555 instead of 777). You also probably don't need closedate in this example since you get the same behavior already in the regular date event because you have essentially the same thing in the 2nd line and you run both events at the same time. The reason you might need closedate is if you want to create new dirs at say midnight but only change them to read-only 2 hours later. In that case you need to run that event at a different time.

nxTool's newdate is kinda weird in my opinion. It's tricky to get the date offset and the timezone working right for me and it creates the date for the next day and not the current one by default. Thus you can't call 'site newdate' and have it generate the proper paths with the way I have it configured so it creates dirs at the right time for me...
Yil is offline   Reply With Quote
Old 02-20-2013, 12:31 PM   #3
MONGi
Member
 
Join Date: May 2012
Posts: 71
Default

Hello Yil,

thanks again for your informations.

It seems as if I have misunderstood.
I assumed that the created folder will also be deleted after ...days.

What opportunities exist to delete folders created after ...days?
If possible a fairly current code.

I tested WarChive. Unfortunately, I get an error after activating scheduler:

error.log:
02-20-2013 02:00:12 Scheduler event 'WarChive' returned error.

SystemError.log:
02-20-2013 02:00:12 CreateProcess failure: .. \ scripts \ WarChive.exe (error = 2)

If WarChive does not belong here - excuse, but I'm hoping for a tip.

...and excuse my bad english.

Thank you
MONGi is offline   Reply With Quote
Old 02-20-2013, 09:04 PM   #4
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

WarChive works. That error indicates that ioFTPD had a problem running the script. Error #2 means the file wasn't found which means you got the path wrong or didn't install it where you thought. Most likely it's ..\scripts\WarChive\Warchive.exe or something.

I'd probably try jeza's solution first though - check new scripts section I believe. It's actively maintained and feature rich.
Yil is offline   Reply With Quote
Old 02-21-2013, 06:40 AM   #5
MONGi
Member
 
Join Date: May 2012
Posts: 71
Default

The directory was wrong, I adapted it. The error is now fixed.

Jeza's i will look at in more detail in the next few days.

Thank you very much
MONGi is offline   Reply With Quote
Reply

Tags
close, directories, newdate, time

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


All times are GMT -5. The time now is 11:17 AM.

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