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 

Listen port

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Yannick80
Voice


Joined: 21 Oct 2008
Posts: 4

PostPosted: Tue Jul 20, 2010 12:21 pm    Post subject: Listen port Reply with quote

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
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Jul 20, 2010 1:28 pm    Post subject: Re: Listen port Reply with quote

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:
Code:

.dccstat

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
View user's profile Send private message
Yannick80
Voice


Joined: 21 Oct 2008
Posts: 4

PostPosted: Tue Jul 20, 2010 4:14 pm    Post subject: Reply with quote

thanks but how to do this in tcl ?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jul 20, 2010 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Yannick80
Voice


Joined: 21 Oct 2008
Posts: 4

PostPosted: Tue Jul 20, 2010 4:51 pm    Post subject: Reply with quote

Very good, you solve my problem
Thanks a lot
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 -> Eggdrop Help 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