This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help with stat update system plz...

Old posts that have not been replied to for several years.
Locked
R
RaBieZ|ZyFleX

help with stat update system plz...

Post by RaBieZ|ZyFleX »

im trying to make a system there update the channel stats when ppl type
!opdater in the chan the bot are in... it dosent work my damn script, hope some of you can help me...
my script look like this:

set cmd "!opdater"
bind pub -|- $cmd stats
proc stats {nick host hand chan text} {
puthelp "NOTICE $nick :Øjeblik, opdater stats"
exec "C:/mircstats/mircstats.bat"
}

when i type !opdater in the chan whit the bot, it say in the party line:
Tcl error [stats]: couldn't duplicate input handle: bad file number

can one of you plz tell me what wrong im my script ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is a typical Tcl error, and from what I understand, there is nothing you can do about it.
R
RaBieZ|ZyFleX

damn

Post by RaBieZ|ZyFleX »

it can't be true that i cant make that type of script, i dont belive that... :(

can you tell me how it must look like, the few one there works ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It's is and it isn't true.

In reality, the command above shoudl work. You could try using { and } instead of ", though I don't know if it would help.

There seems to be an issue with Tcl and Windows, where programs can't be executed correctly. This may be due to certain libraries they where linked against, or the way the prgram handles output.

In essance, the error is half fatal. It means it worked, it hasn't crashed the bot, but it's doing do it's job correctly.

Short of using a *nix OS, there isn't anything you can doo.

I have never seen a workaround for this and nay forum, usenet, FAQ or any other form of documentation.
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

I have also searched high and low without any results about the same error. How hard could it frickin be to receive one line of text from uptime.exe!? :evil:
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Does it have something to do with how eggdrop closes stdin/stdout? Try removing that bit from the code and recompiling.
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

I hate c, and c hates me. Maybe I shall attempt this one day..
Locked