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

	<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-01-15T16:55:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-01-15T16:55:58-04:00</updated>

		<published>2005-01-15T16:55:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45426#p45426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45426#p45426"/>
		<title type="html"><![CDATA[eggdrop logviewer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45426#p45426"><![CDATA[
i`ll be an asshole if i go and bitch about the help you gave me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>you gave me a pretty good base , if not the entire solution, to the problem i have.<br><br>the logfiles size should not be a problem since it is a small channel with moderate traffic <br><br>thanks again !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Jan 15, 2005 4:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-01-15T15:36:17-04:00</updated>

		<published>2005-01-15T15:36:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45419#p45419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45419#p45419"/>
		<title type="html"><![CDATA[eggdrop logviewer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45419#p45419"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc n readlog dcc:readlogproc dcc:readlog { h i a } {  if {[llength [split $a]] != 1} {     putdcc $i "usage: .$::lastbind &lt;logfile&gt;"     putdcc $i [join [glob -nocomplain -directory logs *.log]]    return  }  if {![file exists [set f [lindex [split $a] 0]]] || ![file readable $f]} {     putdcc $i "Error..."    return   }  set d [split [read [set fp [open $f r]]] \n] ; close $fp  putdcc $i "LOG START"  foreach l $d { putdcc $i $l }  putdcc $i "LOG END (read [llength $d] lines)"  return}</code></pre></div>something like this should work. i dont know how big the logfile has to be before using [read] becomes a bad idea, but feel free to bitch about it if it breaks your bot  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>also note that you can read any file that is readable by the eggdrop's uid/gid<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat Jan 15, 2005 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-01-13T22:51:27-04:00</updated>

		<published>2005-01-13T22:51:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45363#p45363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45363#p45363"/>
		<title type="html"><![CDATA[eggdrop logviewer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45363#p45363"><![CDATA[
Hi<br><br>I`d like to know if there is a way to make a kind of "logviewer" for eggdrop so i can list files in the logs directory , and open them without the obligation to download it from the eggdrop ( i try to use eggpad.tcl but it`s not made for what i want to do ) i dont want to edit the files but juste open it so i can view it then close it again<br><br>any suggestion welcome !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Thu Jan 13, 2005 10:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
