<?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/9615" />

	<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>2005-05-10T23:10:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[oioifatty]]></name></author>
		<updated>2005-05-10T23:10:50-04:00</updated>

		<published>2005-05-10T23:10:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49354#p49354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49354#p49354"/>
		<title type="html"><![CDATA[doh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49354#p49354"><![CDATA[
Thank you for your posts, the help is very appreciated.<br>and thank you <strong class="text-strong">gb</strong>, thats the third or forth time you've helped me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6210">oioifatty</a> — Tue May 10, 2005 11:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-05-10T22:30:05-04:00</updated>

		<published>2005-05-10T22:30:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49352#p49352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49352#p49352"/>
		<title type="html"><![CDATA[Major newbie help with IF statements]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49352#p49352"><![CDATA[
you're overwriting your var every time there's a match, use append/lappend to append (doh) it to your var.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue May 10, 2005 10:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-05-10T21:25:10-04:00</updated>

		<published>2005-05-10T21:25:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49350#p49350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49350#p49350"/>
		<title type="html"><![CDATA[Major newbie help with IF statements]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49350#p49350"><![CDATA[
Click <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/if.htm" class="postlink">here</a> for full information regarding "if" statements.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue May 10, 2005 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[oioifatty]]></name></author>
		<updated>2005-05-10T17:45:55-04:00</updated>

		<published>2005-05-10T17:45:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49336#p49336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49336#p49336"/>
		<title type="html"><![CDATA[Major newbie help with IF statements]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49336#p49336"><![CDATA[
Hi, i've got a smal tcl code that reads the contents of a file for devices, eth0, eth1 etc...<br>the devs file contains all of the items in the list, but it only returns the last item that matches in the dev file, i know its something to do with the IF's, but i just can't get my head arounfd the correct layout. could any suggest the correct layout?<br><br><div class="codebox"><p>Code: </p><pre><code>set devices "/proc/net/dev"set file [ open $devices r ]set data [read -nonewline $file]   close $fileset lines [split $data "\n"]foreach line $lines {   if [string match "*lo:*" $line] {      set lo lo      } else { set lo ""}    if [string match -noc "*eth0:*" $line] {      set eth0 eth0      } else { set eth0 ""}   if [string match -noc "*eth1:*" $line] {      set eth1 eth1      } else { set eth1 ""}   if [string match -noc "*ppp0:*" $line] {      set ppp0 ppp0      } else { set ppp0 ""}   if [string match -noc "*ppp1:*" $line] {      set ppp1 ppp1      } else { set ppp1 ""}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6210">oioifatty</a> — Tue May 10, 2005 5:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
