PDA

View Full Version : Bot restart and kill through ioFTPD


MonsterDK
10-10-2004, 06:00 AM
I've looked on the forums and got as far as below with this, which worked fine on an older version of ioFTPD but don't seem to work on latest version (ioFTPD 5.8.5).

I want to be able to log onto the client and restart the eggdrop bot using commands (site bot) and also to be able to kill it (site botkill).

for eggdrop kill i'm using...
BAT FILE.....
@echo off
c:\WindropIO****ed\pskill.exe eggdrop
:END

and in the ioFTPD.ini....
botkill = EXEC ..\scripts\botkill.bat
botkill = 1MS
The above works fine.



For eggdrop restart...
BAT FILE...
@echo off
CD c:\WindropIO****ed
pslist eggdrop > nul
IF ERRORLEVEL 1 GOTO con
ECHO BOT STILL RUNNING (DiD NOTHiNG)
GOTO END

:CON
CD c:\WindropIO****ed
start hidewndw /r /n 'c:\WindropIO****ed\eggdrop.exe -nt'
ECHO BOT DOWN (RESTARTiNG iT)

:END

and in the ioFTPD.ini...
bot = EXEC ..\scripts\restart.bat
bot = 1MS

The above does not give any errors but does NOT work :(
when the bat file is run on the machine manually it works fine so the bat file does work, just not as a command from ioFTPD..... anyone any ideas or solutions around this?

JoeBAR
12-18-2004, 04:42 PM
Originally posted by MonsterDK


:CON
CD c:\WindropIO****ed
start hidewndw /r /n 'c:\WindropIO****ed\eggdrop.exe -nt'
ECHO BOT DOWN (RESTARTiNG iT)

:END


I had it as :

cd /d c:\WindropIO****ed
start hidewndw /r eggdrop.exe -nt eggdrop.conf
ECHO BOT DOWN (RESTARTiNG iT)

i.e. no path to eggdrop.exe since we're already there, but specify conf filename.

Now I use firedaemon and it's all service... The trick to make FireDaemon to werk with eggdrop is in eggdrop.conf:

set userfile-perm 0666

Hope this helps