egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Looking for a help with 1 TCL Script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
helical
Voice


Joined: 26 Apr 2006
Posts: 1

PostPosted: Wed Apr 26, 2006 9:40 am    Post subject: Looking for a help with 1 TCL Script Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Apr 28, 2006 4:02 am    Post subject: Reply with quote

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 Very Happy. 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...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber