Old 05-18-2004, 02:03 PM   #61
jboy53
Junior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 23
Default

sorry about before however .... its now 2.0.7.0 ..

200-Kicked: me *@(EDITED)
200-Connection 8 cid=8 uid=104 gid=102 Username=me Groupname=iND
200-CompareNumber:idletime>120 result:9
200-TimesToKill=-9 compare:idletime>120 ArgumentResult=NEQ, TotalResult=1
200-Final compare result of all arguments NEQ
200-Totally 8 connections kicked, due to:idletime>120
500-Invalid argument: "idletime>120".
500 Command failed.


it still didnt actually kill/kick the 8 connections

is there anything that the "debug" tells you?
jboy53 is offline   Reply With Quote
Old 09-17-2004, 07:55 AM   #62
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

Is it possible to override the internal ioFTPD site kill?
nicolay is offline   Reply With Quote
Old 09-17-2004, 11:25 AM   #63
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

eeh I think it is possible but to be honest I never tried it.
FTPServerTools is offline   Reply With Quote
Old 09-17-2004, 06:46 PM   #64
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

Why I'm asking is because SITE KILL gives your output + the internal, so if i do SITE KILL "downspeed<10"... then it gives your scripts output and command failed from ioFTPD internal.

Would be nice if thats fixeable without changing command to something else then SITE KILL -no biggy though, and great script btw! works like a charm...

Keep it up...
nicolay is offline   Reply With Quote
Old 09-17-2004, 08:29 PM   #65
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

It's been possible to replace internal commands since Beta-5.4.0.
Quote:
From the Changelog:
Change: Internal site commands can be chained with scripts (internal command is last in chain, and not executed, if chain is broken)
The 'chain' is broken by returning non-zero.
neoxed is offline   Reply With Quote
Old 09-18-2004, 05:46 PM   #66
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

Hmm, i dont quite get it. It exec's both the internal and the ioSiteKill when i do SITE KILL "something"

im a bit newbie :P
nicolay is offline   Reply With Quote
Old 09-18-2004, 05:50 PM   #67
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Normal. sitekill needs to be changed to return non-zero if you want to do that.
Wait for author.
Mouton is offline   Reply With Quote
Old 09-19-2004, 01:09 PM   #68
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

I am the author, so I'll have a look for you. It should be a minor change.
FTPServerTools is offline   Reply With Quote
Old 09-20-2004, 04:52 PM   #69
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

Thanks man!

Excelent work! Looking forward to a "fix"...
nicolay is offline   Reply With Quote
Old 09-21-2004, 04:19 AM   #70
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Try the current one, I changed the return code to 1.
FTPServerTools is offline   Reply With Quote
Old 09-21-2004, 07:49 AM   #71
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

What can I say...


Perfect!
nicolay is offline   Reply With Quote
Old 09-21-2004, 07:21 PM   #72
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

[Scheduler]

KillIdlers = 0,5,10,15,20,25,30,35,40,45,50,55 * * * EXEC ..\scripts\ioSiteKill\SiteKill.exe silent "idletime>120" service=FTP_Service

error.log
(...)
09-22-2004 01:20:45 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:25:45 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:30:46 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:35:45 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:40:49 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:45:45 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:50:46 Scheduler event 'KillIdlers' returned error.
09-22-2004 01:55:45 Scheduler event 'KillIdlers' returned error.
09-22-2004 02:00:46 Scheduler event 'KillIdlers' returned error.
09-22-2004 02:05:45 Scheduler event 'KillIdlers' returned error.
09-22-2004 02:10:46 Scheduler event 'KillIdlers' returned error.

I know its been asked before, but is there a solution?
(SITE CMD works fine, no error in debug)

ioFTPD 5.8.5r
nicolay is offline   Reply With Quote
Old 09-21-2004, 07:55 PM   #73
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Hehe, when an application returns non-zero, it's considered an "error" to ioFTPD. However, at the same time, it can be used to halt all following events (as I mentioned above). I guess adding a parameter to make this behavior optional (returning non-zero) would work. Sorry RAMRAM, I should have mentioned this earlier.
neoxed is offline   Reply With Quote
Old 09-22-2004, 04:19 AM   #74
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Ok go and play with the current version.
You need to set call it with override if you override the SITE KICK command. Do not use override if you dont override.. doh sounds stupidly simple...
FTPServerTools is offline   Reply With Quote
Old 09-22-2004, 09:37 AM   #75
nicolay
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 16
Default

Hm thats weird, this new version just keeps crashing on me
nicolay is offline   Reply With Quote
Reply

Tags
download, ftp, kick, sitekill, upload

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:34 AM.

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