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

	<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>2001-11-20T12:44:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-20T12:44:00-04:00</updated>

		<published>2001-11-20T12:44:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1828#p1828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1828#p1828"/>
		<title type="html"><![CDATA[log files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1828#p1828"><![CDATA[
Hmm.. okay. I think I can figure out how to do that. Have to give that a shot.<br><br>Do you (or anyone for that matter) know why eggdrop won't write to the log file after I move it out copy a blank one back in? <br><br>Thanks in advance,<br><br>Otterboyy<p>Statistics: Posted by Guest — Tue Nov 20, 2001 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-20T12:41:00-04:00</updated>

		<published>2001-11-20T12:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1826#p1826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1826#p1826"/>
		<title type="html"><![CDATA[log files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1826#p1826"><![CDATA[
One method is to use your web-script to read all the current lines form the file, and store the last read position from the file, in a seperate file. Then next time it comes to reading the file, you start reading form the last known possition, once again, storing the last know  possition at the end.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 20, 2001 12:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-20T12:24:00-04:00</updated>

		<published>2001-11-20T12:24:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1825#p1825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1825#p1825"/>
		<title type="html"><![CDATA[log files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1825#p1825"><![CDATA[
Yes, another question from yours truly. But I must say I'm learning more and more.  The question today has to do with log files.<br><br>With the way I have implemented my IRC server and eggbot, I have a need to log all "chat" in a particular channel.  I have done this with <br>logfile p #helpdesk "logs/helpchat.log" <br><br>The above works well and logs the appropriate channel messages.  The problem comes in with the fact that on an hourly basis, I need to publish the previous hours log file to a webpage.<br><br>The way I am currently trying to implement this is through a crontab in linux with a simple script that moves the file from the current location in "/logs/" to the web directory and then I am recreating the file name in the "/logs/" directory with a 'touch' command and the appropriate channame.log.daymonthyear file format that egg creates for the filename.  <br><br>The problem comes in that once I move the original file that egg creates and 'touch' it to recreate empty, that the channel chatter never gets posted to the log file anymore.<br><br>I have tried taking a blank copy of the log file that egg creates and through the script (not TCL by the way, just a bash script) copy that blank file back to the "/logs/" directory after I have moved the hour of channel chat out.<br><br>Any suggestions on this or a better or different way to do this?<br><br>Thank you,<br>Otterboyy<p>Statistics: Posted by Guest — Tue Nov 20, 2001 12:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
