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.

Looking for a help with 1 TCL Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
h
helical
Voice
Posts: 1
Joined: Wed Apr 26, 2006 9:38 am

Looking for a help with 1 TCL Script

Post by helical »

right now I got a script that when u trigger it , it check if the host is down or up , and msg it on the channel.
I wanna make a script , that when I turn it on by any command , it will connect to the selected host and port , and it will say if it's up or down , and when it goes down , it will msg on the channel that it's down , and if it goes up agian , it will msg on the chnnale that it went up agian.

but I have no clue how to make this , I need help people , please anyone who got ideas.

waiting for replys :D
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

wont the TCP connection timeout after some time of inactivity? it that case it would be rather useless for wait for the timeout, beacuse you dont know if the host really timedout (failed TCP keepalive) or just had the usual timeout of inactivity :D. I personally use 10min timered socket probes for such purposes and set the topic change 1min later to the socket probe. you can put the chan msg also directly in the callback of course and check once every minute.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply