Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-02-2005, 03:25 PM   #1
djdeluxe76
Member
 
Join Date: Mar 2005
Posts: 43
Default ioAUTONUKE and external drives

Hello Harm, i know you busy working on your new scripts, but maybe this helps you for bug tracking.

I have found out something about ioAUTONUKE.itcl:

I added a TCL command (site autonuke) pointing to the
ioAUTONUKE.itcl script for testing purposes. Upon executing the
script it tells me which dirs it is checking for what purposes.

It was interesting to see that it somehow substitutes one of my two
USB 2.0 external harddrives (namely with drive letter E:) with my
main RAID disk (C:). In the output it checks D:\APPS\a.very.long.list.of.different.folders
D:\TVEPS\another.very.long.list.etc... for incomplete dirs, for empty
dirs and so on which is what it should do. As soon as it it comes to
checking E: (see attached vfs layout down below) I see it checking my C:\Documents and Settings,
C:\WINDOWS, and so on ... I have no idea why this is but no wonder
it says in log:

Code:
SystemError.log

--------------------------- ErrorInfo ----------------------------
can't read "anuke(banned,)": no such element in array
    while executing
"foreach type $anuke(banned,$section) {
if {[string match -nocase "*$type*" $name]} {return $type}
}"
    (procedure "isbanned" line 3)
    invoked from within
"isbanned "$subsection" "$release""
    (procedure "autonuke" line 175)
    invoked from within
"autonuke"
    (file "..\scripts\ioAUTONUKE.itcl" l
my default.vfs for autonuke script. (ie. set anuke(mtab) "C:/ioFTPD/etc/default.vfs")

Code:
default.vfs

"C:\ioFTPD\site"	/
"D:\APPS"           /APPS
"D:\DIVX"	    /DIVX
"D:\GAMES"        /GAMES
"D:\MOVIES"	  /MOVIES
"D:\MP3"	     /MP3
"D:\REQUESTS"   /REQUESTS
"D:\SPEEDTEST"	/SPEEDTEST
"D:\TVEPS"	    /TVEPS
"E:\0DAY"	     /0DAY
"E:\ARCHIVE"	  /ARCHIVE

and finally my settings in ioAUTONUKE.itcl

Code:
ioAUTONUKE.itcl

set anuke(user) "nuker"
set anuke(group) "Nukers"
set anuke(mtab) "C:/ioFTPD/etc/autonuke.vfs"
set anuke(muser) "sitebot"
set anuke(ioA) "C:\\ioFTPD\\scripts\\ioA\\ioA.exe"
set anuke(ioB) "C:\\ioFTPD\\scripts\\ioBanana.exe"
set anuke(tag) "\[NUKED\]-"

###; exclude = dirs with those words won't be checked
###; maxtime = releases older than that (mins) won't be checked
set anuke(exclude) {"incomplete" "nfofix" "nfo.fix" "nfo.update" "dirfix" "dir.fix" "samplefix" "sample.fix" "repack" ".fix." "_fix_" "Sorted" "\[200[0-9]\]" "\[200[0-9]*01\]" "\[200[0-9]*02\]" "\[200[0-9]*03\]" "\[200[0-9]*04\]" "\[200[0-9]*05]" "\[200[0-9]*06]" "\[200[0-9]*07\]" "\[200[0-9]*08\]" "\[200[0-9]*09\]" "\[200[0-9]*10\]" "\[200[0-9]*11\]" "\[200[0-9]*12\]"}
set anuke(maxtime) 4320

###; enable or disable nuke/warn (1 = enable, 0 = disable)
set anuke(empty,nuke) 1; set anuke(missing,nuke) 1; set anuke(banned,nuke) 1; set anuke(allowed,nuke) 1;
set anuke(empty,warn) 1; set anuke(missing,warn) 1; set anuke(banned,warn) 1; set anuke(allowed,warn) 1;

###; syntax: {"/section" statsection creditsection multiplier warnmins nukemins}
set anuke(empty,sections) {{"/APPS" 1 1 3 120 240} {"/0DAY/????" 1 1 3 1 60} {"/MOVIES" 1 1 3 120 240} {"/TVEPS" 1 1 3 120 240}}
set anuke(missing,sections) {{"/APPS" 1 1 3 1200 1440} {"/MOVIES" 1 1 3 240 360} {"/TVEPS" 1 1 3 120 240} {"/0DAY/????" 1 1 3 1200 1440}}
set anuke(banned,sections) {{"/APPS" 1 1 3 1 120} {"/0DAY" 1 1 3 1 120}}
set anuke(allowed,sections) {{"/DTB" 1 1 3 0 60}}
hope this helps you somehow.

Cheers
DJ
djdeluxe76 is offline   Reply With Quote
Old 05-02-2005, 04:49 PM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

The error message isn't related to your problem. I don't know why this one pops up though. As I told you a few days ago, I was unable to locate anything that could cause this.

The script checks all dirs in c: when the virtual path can't be resolved to a real path (empty variable, bad bad...). I will take care of such cases in the future.
Are you sure that the /0DAY/???? path exists ? I see that you aren't always checking dated dirs in this section.
Harm is offline   Reply With Quote
Old 05-02-2005, 05:12 PM   #3
djdeluxe76
Member
 
Join Date: Mar 2005
Posts: 43
Default

yes it exists. NEWDATE creates a new dir plus one for tomorrow every
day. Even though it might be empty for a few hours after midnight.

I posted the wrong version of my ioAUTONUKE.itcl settings though.
normally it's /0DAY/???? after you had told me scanning complete 0day
section with just dated dirs (and not actual rls in it e.g. /0DAY as level
1 and every dated dir in /0DAY as level 2) is not possible(yet) I just
removed the /???? to test a crippled version of my default.vfs.

Well okay, it's nothing serious I just thought this might give a you
another clue. I better let you continue and wait until new version.

Thanks for the fast reply

Cheers
DJ
djdeluxe76 is offline   Reply With Quote
Old 05-02-2005, 06:00 PM   #4
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

original name that ioAUTONUKE, get's confusing around here, no?
deo is offline   Reply With Quote
Reply

Tags
120, 240, dirs, set, [200[0-9]]

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 04:17 AM.

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