<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/7028" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-03-11T10:20:55-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/7028</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-11T10:20:55-04:00</updated>

		<published>2004-03-11T10:20:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34449#p34449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34449#p34449"/>
		<title type="html"><![CDATA[expand .netshell - maybe someone knows :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34449#p34449"><![CDATA[
Hi there, and thank you for the quick reply.<br><br>Yeah, it is quite crowded - but I considered that command the best to display it. I wouldn't even know how to write my own commands, so I just tried to expand on what was already there.<br><br>I would really appriciate it if you had the time to work on this. There is no rush at all and hopefully I also learn from what you posted above. I will at least try my best.<br><br><br><span style="font-size:59%;line-height:116%">[15:23] &lt;floris&gt; .nettcl<br>[15:23] &lt;System&gt; [06:23] #floris# nettcl <br>[15:23] &lt;System&gt; Usage: nettcl &lt;command&gt;<br>[15:23] &lt;floris&gt; .nettcl set conns "" ; foreach conn [dcclist] { if {[string equal [lindex [lindex $conn 4] 0] "lstn"]} {lappend conns [list [lindex [lindex $conn 4] 1] [lindex $conn 1]]} } ; return [join $conns ", "]<br>[15:23] &lt;System&gt; [06:23] #floris# nettcl set conns "" ; foreach conn [dcclist] { if {[string equal [lindex [lindex $conn 4] 0] "lstn"]} {lappend conns [list [lindex [lindex $conn 4] 1] [lindex $conn 1]]} } ; return [join $conns ", "]<br>[15:23] &lt;System&gt; Executing command 'set conns "" ; foreach conn [dcclist] { if {[string equal [lindex [lindex $conn 4] 0] "lstn"]} {lappend conns [list [lindex [lindex $conn 4] 1] [lindex $conn 1]]} } ; return [join $conns ", "]' on netbots.<br>[15:23] &lt;System&gt; Tcl: 1550 (telnet)</span><br><br>Yay, so far so good. (btw; System is the hub to which 20+ leafs are connected to)<br><br>By the way .netupdate is a really really great feature. Your netscript is amazing.<br><br>I just done a .netupdate and let that do its thing.<br>After which I run the command again and weee: worked!<br><br><span style="font-size:59%;line-height:116%">[15:29] &lt;System&gt; Tcl: 1550 (telnet)<br>[15:29] &lt;System&gt; Register: Tcl: 12661 (telnet)<br>[15:29] &lt;System&gt; wankah: Tcl: 11770 (telnet)<br>[15:29] &lt;System&gt; wiggle: Tcl: 16609 (telnet)<br>[15:29] &lt;System&gt; Zenith: Tcl: 1880 (telnet)<br>[15:29] &lt;System&gt; vB3Gold: Tcl: 1990 (telnet)<br>[15:29] &lt;System&gt; OMGWTFHI: Tcl: 1660 (telnet)<br>[15:29] &lt;System&gt; bouncy: Tcl: 16460 (telnet)<br>[15:29] &lt;System&gt; federal: Tcl: 11660 (telnet)<br>[15:29] &lt;System&gt; bastard: Tcl: 16650 (telnet)<br>[15:29] &lt;System&gt; sexy: Tcl: 11770 (telnet)<br>[15:29] &lt;System&gt; Longhorn: Tcl: 37773 (telnet)<br>[15:29] &lt;System&gt; RTFM: Tcl: 57775 (telnet)<br>[15:29] &lt;System&gt; Server: Tcl: 17771 (telnet)<br>[15:29] &lt;System&gt; UNIX: Tcl: 27772 (telnet)<br>[15:29] &lt;System&gt; Piracy: Tcl: 47774 (telnet)<br>[15:29] &lt;System&gt; forums: Tcl: 12660 (telnet)<br>[15:29] &lt;System&gt; NewPost: Tcl: 15660 (telnet)<br>[15:29] &lt;System&gt; Justice: Tcl: 13660 (telnet)<br>[15:29] &lt;System&gt; NewThread: Tcl: 14660 (telnet)<br>[15:29] &lt;System&gt; mainframe: Tcl: 1660 (telnet)<br>[15:29] &lt;System&gt; ProfeX: Tcl: 1770 (telnet)<br>[15:29] &lt;System&gt; wip3out: Tcl: 1660 (telnet)<br></span><p>Statistics: Posted by Guest — Thu Mar 11, 2004 10:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2004-03-11T10:02:07-04:00</updated>

		<published>2004-03-11T10:02:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34447#p34447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34447#p34447"/>
		<title type="html"><![CDATA[expand .netshell - maybe someone knows :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34447#p34447"><![CDATA[
Here's one way:<br><br>.nettcl set conns "" ; foreach conn [dcclist] { if {[string equal [lindex [lindex $conn 4] 0] "lstn"]} {lappend conns [list [lindex [lindex $conn 4] 1] [lindex $conn 1]]} } ; return [join $conns ", "]<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><br><br>I think what netshell returns is crowded enough as it is, but a seperate ".netconn"  command incorporating the above would be useful. I don't have time to do it at the moment but basically all that's required is to take an existing standard set of three procs used for net commands (e.g. netshell), copy and rename and modify it with the above, then add the standard hooks.<br><br>I'll write a component for since I think it would be a useful example showing scripters how they can add their own commands. Remind me if I haven't done so in the next week or two (lots going on at the moment so I may forget).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Thu Mar 11, 2004 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-09T06:09:04-04:00</updated>

		<published>2004-03-09T06:09:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34376#p34376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34376#p34376"/>
		<title type="html"><![CDATA[expand .netshell - maybe someone knows :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34376#p34376"><![CDATA[
Hi there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I'd like to expand .netshell to include the dcc listen port.<br><br>I have set a listen XXX all,<br>and it would be great if we can get<br><br>.netshell <br><br>from the hub, to display <br><br>[11:07] &lt;system&gt; &lt;botnick&gt; is on &lt;shellhost&gt; - Linux 2.4.25-grsec - 11:07am up 419 days, 11:24, 1 users, load average: 0.02, 0.27, 0.28 listen port: 12345<br><br><br>Does someone know how to do this? That would be really great.<p>Statistics: Posted by Guest — Tue Mar 09, 2004 6:09 am</p><hr />
]]></content>
	</entry>
	</feed>
