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

	<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-02-03T04:33:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-03T04:33:39-04:00</updated>

		<published>2005-02-03T04:33:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46190#p46190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46190#p46190"/>
		<title type="html"><![CDATA[search line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46190#p46190"><![CDATA[
And 'close $file' simply should be okay. I don't find a need to use "catch" in this case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Feb 03, 2005 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-02-03T04:10:37-04:00</updated>

		<published>2005-02-03T04:10:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46184#p46184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46184#p46184"/>
		<title type="html"><![CDATA[search line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46184#p46184"><![CDATA[
Either check <a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">Basic File Operations</a> or <a href="http://forum.egghelp.org/viewtopic.php?p=24833" class="postlink">user's</a> post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 03, 2005 4:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-03T04:04:55-04:00</updated>

		<published>2005-02-03T04:04:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46182#p46182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46182#p46182"/>
		<title type="html"><![CDATA[Re: HELP ME, file related]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46182#p46182"><![CDATA[
<blockquote class="uncited"><div>if {[string match *word* $line]} {</div></blockquote>How does it know what *word* is? <br><br>that should be the argument passed in ($arg).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Feb 03, 2005 4:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kozpt]]></name></author>
		<updated>2005-02-02T20:58:41-04:00</updated>

		<published>2005-02-02T20:58:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46171#p46171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46171#p46171"/>
		<title type="html"><![CDATA[search line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46171#p46171"><![CDATA[
___________________________________________________________<br>bind pubm - "*teste*" pubm:teste<br> proc pubm:teste { nick uhost handle channel arg } {<br> global bla<br> set file logs/ipc.log<br> set textf [open $file r]<br> set data [read $textf]<br> foreach line [split $data \n] {<br>   if {[string match *word* $line]} {<br>      set text $line<br>putserv "PRIVMSG $chan :I found word in line $text"<br>        }<br>     }<br>    catch {close $file}<br>  }<br>___________________________________________________________________<br><br>whats wrong in this code?? i want that eggdrop searchs for a word in a logfile and say the lines of the file he found the word<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5960">kozpt</a> — Wed Feb 02, 2005 8:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
