05-18-2004, 02:03 PM
|
#61
|
Junior Member
ioFTPD Foundation User
Join Date: Oct 2003
Posts: 23
|
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?
|
|
|
09-17-2004, 07:55 AM
|
#62
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
Is it possible to override the internal ioFTPD site kill?
|
|
|
09-17-2004, 11:25 AM
|
#63
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
eeh I think it is possible but to be honest I never tried it.
|
|
|
09-17-2004, 06:46 PM
|
#64
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
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...
|
|
|
09-17-2004, 08:29 PM
|
#65
|
Too much time...
FlashFXP Beta Tester ioFTPD Scripter
Join Date: May 2003
Posts: 1,326
|
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.
|
|
|
09-18-2004, 05:46 PM
|
#66
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
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
|
|
|
09-18-2004, 05:50 PM
|
#67
|
Posse Member
Ultimate Scripter ioFTPD Administrator
Join Date: Dec 2002
Posts: 1,956
|
Normal. sitekill needs to be changed to return non-zero if you want to do that.
Wait for author.
|
|
|
09-19-2004, 01:09 PM
|
#68
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
I am the author, so I'll have a look for you. It should be a minor change.
|
|
|
09-20-2004, 04:52 PM
|
#69
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
Thanks man!
Excelent work! Looking forward to a "fix"...
|
|
|
09-21-2004, 04:19 AM
|
#70
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
Try the current one, I changed the return code to 1.
|
|
|
09-21-2004, 07:49 AM
|
#71
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
What can I say...
Perfect!
|
|
|
09-21-2004, 07:21 PM
|
#72
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
[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
|
|
|
09-21-2004, 07:55 PM
|
#73
|
Too much time...
FlashFXP Beta Tester ioFTPD Scripter
Join Date: May 2003
Posts: 1,326
|
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.
|
|
|
09-22-2004, 04:19 AM
|
#74
|
Senior Member
FlashFXP Beta Tester ioFTPD Scripter
Join Date: Sep 2002
Posts: 543
|
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...
|
|
|
09-22-2004, 09:37 AM
|
#75
|
Junior Member
ioFTPD Foundation User
Join Date: Jan 2004
Posts: 16
|
Hm thats weird, this new version just keeps crashing on me
|
|
|
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
|
|
|
All times are GMT -5. The time now is 11:57 AM.
|