PDA

View Full Version : Launching eggdrop OnServerStart - tcl


mog-on
10-03-2003, 08:52 PM
I tried to use tcl command : exec, but it doesn't seem to work
OnServerStart = ..\scripts\launch_eggdrop.itcl

launch_eggdrop.itcl :

exec ../windrop/eggdrop.exe -nt egg.conf

I tried bg exe (&) and redirections for debug, it does not work, the egg starts loading modules and tcl scripts, but it is unable to connect to irc server, seems to be a socket problem.

cpas
10-06-2003, 07:52 PM
Why not use firedaemon to relunch ur egg when he die, u can start it in nt mode and hidden mode as well, seems to be a nice option.

mog-on
10-07-2003, 07:47 AM
I don't need to launch it as a service ;)

I want to launch it onserverstart.

wiley
12-30-2004, 08:41 AM
i'm looking for the same thing, would be nice to have windrop started with "OnServerStart" event, i've tried a few *.bat with :
OnServerStart= EXEC ...\scripts\start.bat
but couldn't have anything working.

Let me know if you got it working with anything, thx.

wiley
12-30-2004, 09:21 AM
I've tried this *.bat which work perfectly when launching it myself :

@echo off
CD c:\tests\windrop
pslist eggdrop > nul
IF ERRORLEVEL 1 GOTO con
ECHO BOT STILL RUNNING (DiD NOTHiNG)
GOTO END

:CON
CD c:\tests\windrop
start hidewndw /r /n 'c:\tests\windrop\eggdrop.exe -nt eggdrop.conf'
ECHO BOT DOWN (RESTARTiNG iT)

:END

i added this line to ioFTPD.ini

OnFtpLogIn = EXEC ..\scripts\bot.bat

so i see what's going on when ioFTPD execute it, all i have is :

[R] 230-BOT DOWN (RESTARTiNG iT)

in status window, but bot haven't been launched.

Doesn't work aswell with "OnServerStart"

Any help would be apreciated.

wiley
12-30-2004, 09:45 AM
Ok, i've added :

SYSTEMROOT=%[environment(SYSTEMROOT)]
WINDIR=%[environment(WINDIR)]

in ioFTPD.env and now it work great with "OnFtpLogIn" but unfortunatly it doesn't work with "OnServerStart" ...

Anyone ? :confused:

mika23
02-20-2005, 07:12 PM
You are lucky, I've tried this but il doesn't work, it seams like pslist always respond than eggy is runnig or like if the batch directly go to :end :(