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 

Need help.. Port checking script..

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


Joined: 18 Jan 2007
Posts: 7

PostPosted: Tue Jan 08, 2008 3:49 am    Post subject: Need help.. Port checking script.. Reply with quote

Hey,

i have a script which opens a tcp port..

Its basically for a php script to connect to the bot and post a msg on irc..

Anyway i have limited tcl scripting ability
what i am looking for is port checking .. to see if its open and return 0 if it is.. or run the socket command if its not..

My problem is when i rehash the bot, it crashes because its already open ..

socket -server Server ###

thats what i am using..

any help would be appriciated
thank you GREATLY for your time

Matt
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Jan 08, 2008 4:12 pm    Post subject: Reply with quote

You know about the [catch] command? And the EVNT prerehash and prerestart binds?

Refer to your friendly manual.
Back to top
View user's profile Send private message
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