View Single Post
Old 11-12-2005, 10:38 AM  
EwarWoo
Senior Member
 
Join Date: Oct 2002
Posts: 462
Default Starting sitebot from site

Hey all

I'm trying to use this bat file to start sitebot from the login event on the ftp when not running:

@echo off
CD x:\path
pslist eggdrop > nul
IF ERRORLEVEL 1 GOTO restart
ECHO Sitebot is currently running
GOTO END

:RESTART
CD x:\path
start hidewndw /r /n eggdrop.exe -nt eggdrop.conf
ECHO Sitebot is currntly down (attempting to restart)

:END

It seems to work a treat however when bot is started this way !bw and !sped wont work, returning a tcl error (Tcl error [proc_bandwidth]: couldn't duplicate input handle: bad file number).

I've tried using hiderun instead of hidewndw and it worked perfectly other than it freezes the ftp session just after starting the bot if its down (but !bw does work) so it certainly seems to be a hidewndw issue.

Either of these issues is not very appealing :/

I'm using dzsbot.

Anyone have any ideas?

Cheers

Scratch that, I found the answer.

In case anyones interested it needed quotations around 'eggdrop.exe -nt eggdrop.conf'.
EwarWoo is offline   Reply With Quote