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.

Need help.. Port checking script..

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
theravenz
Voice
Posts: 7
Joined: Thu Jan 18, 2007 9:50 pm

Need help.. Port checking script..

Post by theravenz »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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

Refer to your friendly manual.
Post Reply