| View previous topic :: View next topic |
| Author |
Message |
Yannick80 Voice
Joined: 21 Oct 2008 Posts: 4
|
Posted: Tue Jul 20, 2010 12:21 pm Post subject: Listen port |
|
|
Hello,
How can i find the listen port of a bot whithout access to .conf file ?
Sorry for my poor english
best regards,
Yannick80 |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Tue Jul 20, 2010 1:28 pm Post subject: Re: Listen port |
|
|
| Yannick80 wrote: | Hello,
How can i find the listen port of a bot whithout access to .conf file ?
Sorry for my poor english
best regards,
Yannick80 |
In the partyline, issue this command:
and see if that gives you the info you want.
There may be other ways to get it. Perhaps someone else will comment, too.
I hope this helps. |
|
| Back to top |
|
 |
Yannick80 Voice
Joined: 21 Oct 2008 Posts: 4
|
Posted: Tue Jul 20, 2010 4:14 pm Post subject: |
|
|
| thanks but how to do this in tcl ? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Jul 20, 2010 4:49 pm Post subject: |
|
|
I'd look at the dcclist command (see doc/tcl-commands.doc for details)
| Code: | set socklist [dcclist TELNET]
foreach item $socklist {
if {[lindex $item 4 0] == "lstn"} {
set type [lindex $item 1]
set port [listex $item 4 1]
# do something here...
}
} |
This should iterate through all telnet-connections, and filter out any non-listening sockets. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Yannick80 Voice
Joined: 21 Oct 2008 Posts: 4
|
Posted: Tue Jul 20, 2010 4:51 pm Post subject: |
|
|
Very good, you solve my problem
Thanks a lot |
|
| Back to top |
|
 |
|