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.
General support and discussion of Eggdrop bots.
Yannick80
Voice
Posts: 4 Joined: Tue Oct 21, 2008 12:07 pm
Post
by Yannick80 » Tue Jul 20, 2010 12:21 pm
Hello,
How can i find the listen port of a bot whithout access to .conf file ?
Sorry for my poor english
best regards,
Yannick80
willyw
Revered One
Posts: 1203 Joined: Thu Jan 15, 2009 12:55 am
Post
by willyw » Tue Jul 20, 2010 1:28 pm
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.
Yannick80
Voice
Posts: 4 Joined: Tue Oct 21, 2008 12:07 pm
Post
by Yannick80 » Tue Jul 20, 2010 4:14 pm
thanks but how to do this in tcl ?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue Jul 20, 2010 4:49 pm
I'd look at the dcclist command (see doc/tcl-commands.doc for details)
Code: Select all
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
Yannick80
Voice
Posts: 4 Joined: Tue Oct 21, 2008 12:07 pm
Post
by Yannick80 » Tue Jul 20, 2010 4:51 pm
Very good, you solve my problem
Thanks a lot