| View previous topic :: View next topic |
| Author |
Message |
theravenz Voice
Joined: 18 Jan 2007 Posts: 7
|
Posted: Tue Jan 08, 2008 3:49 am Post subject: Need help.. Port checking script.. |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Jan 08, 2008 4:12 pm Post subject: |
|
|
You know about the [catch] command? And the EVNT prerehash and prerestart binds?
Refer to your friendly manual. |
|
| Back to top |
|
 |
|