<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Auto Scrolling Apache Log Script</title>
	<atom:link href="http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/</link>
	<description></description>
	<lastBuildDate>Thu, 18 Jun 2009 12:00:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ah_skeet</title>
		<link>http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/comment-page-1/#comment-30</link>
		<dc:creator>ah_skeet</dc:creator>
		<pubDate>Sat, 19 May 2007 16:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/#comment-30</guid>
		<description>Right. I understand that it will follow it; however, I thought it would only show the last 10 lines after an update if the update consisted of 100s, but I just tried it, and it&#039;ll show all of them. My mistake on that part.

This still doesn&#039;t only show only the unprinted lines from an execution before.

So, if I kill &lt;code&gt;tail -f -n 50 access.log&lt;/code&gt; to do something, like edit a file, and run &lt;code&gt;tail -f -n 50 access.log&lt;/code&gt; again, that will still show me 50 lines, where most, if not all, would probably be old.

If I killed &lt;code&gt;python logscroll.py&lt;/code&gt; to do something else, and ran &lt;code&gt;python logscroll.py&lt;/code&gt; again, it would show only the new lines since the time I killed it, whether that be 0 or 50.

I could&#039;ve just stopped them instead of killing them, but it would still hold true if I needed to restart, logout, or lost the connection.

Running &lt;code&gt;tail -f&lt;/code&gt; will probably be more than enough for most people, and I&#039;m not saying this script is better. In fact, I&#039;m pretty sure it&#039;s worse. It was just something I hacked together and thought that someone might find this useful.</description>
		<content:encoded><![CDATA[<p>Right. I understand that it will follow it; however, I thought it would only show the last 10 lines after an update if the update consisted of 100s, but I just tried it, and it&#039;ll show all of them. My mistake on that part.</p>
<p>This still doesn&#039;t only show only the unprinted lines from an execution before.</p>
<p>So, if I kill <code>tail -f -n 50 access.log</code> to do something, like edit a file, and run <code>tail -f -n 50 access.log</code> again, that will still show me 50 lines, where most, if not all, would probably be old.</p>
<p>If I killed <code>python logscroll.py</code> to do something else, and ran <code>python logscroll.py</code> again, it would show only the new lines since the time I killed it, whether that be 0 or 50.</p>
<p>I could&#039;ve just stopped them instead of killing them, but it would still hold true if I needed to restart, logout, or lost the connection.</p>
<p>Running <code>tail -f</code> will probably be more than enough for most people, and I&#039;m not saying this script is better. In fact, I&#039;m pretty sure it&#039;s worse. It was just something I hacked together and thought that someone might find this useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: def ZA</title>
		<link>http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/comment-page-1/#comment-29</link>
		<dc:creator>def ZA</dc:creator>
		<pubDate>Sat, 19 May 2007 11:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/#comment-29</guid>
		<description>You can specify to &quot;follow&quot; the file as you describe above like so:

&lt;em&gt;tail -f blah.txt&lt;/em&gt;

the &quot;-f&quot; is follow, and updates as new stuff arrives in the file.

&lt;em&gt;tail blah.txt&lt;/em&gt;
will show 10 lines by default once off. 
&lt;em&gt;tail -n 50 blah.txt&lt;/em&gt;
will do the same with 50 lines.

&lt;em&gt;tail -f -n 50 blah.txt&lt;/em&gt;
Will follow the file after showing the first 50 lines.</description>
		<content:encoded><![CDATA[<p>You can specify to &#034;follow&#034; the file as you describe above like so:</p>
<p><em>tail -f blah.txt</em></p>
<p>the &#034;-f&#034; is follow, and updates as new stuff arrives in the file.</p>
<p><em>tail blah.txt</em><br />
will show 10 lines by default once off.<br />
<em>tail -n 50 blah.txt</em><br />
will do the same with 50 lines.</p>
<p><em>tail -f -n 50 blah.txt</em><br />
Will follow the file after showing the first 50 lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ah_skeet</title>
		<link>http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/comment-page-1/#comment-25</link>
		<dc:creator>ah_skeet</dc:creator>
		<pubDate>Thu, 17 May 2007 19:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/#comment-25</guid>
		<description>More or less, yes.

There are some differences.

Tail shows the last 10 lines whenever you start, while this shows however many new lines there were since the last display.

Tail &quot;monitors&quot; the file, this just opens the file, goes to the pointer, and fires off whatever new lines are after.

Tail updates instantly, while this updates every 60 seconds.

Tail, I think, will only display the last 10 lines of every update. If you have a file that gets updated in batch, i.e. 50  lines a time like this server does, then you&#039;ll miss a lot of lines.</description>
		<content:encoded><![CDATA[<p>More or less, yes.</p>
<p>There are some differences.</p>
<p>Tail shows the last 10 lines whenever you start, while this shows however many new lines there were since the last display.</p>
<p>Tail &#034;monitors&#034; the file, this just opens the file, goes to the pointer, and fires off whatever new lines are after.</p>
<p>Tail updates instantly, while this updates every 60 seconds.</p>
<p>Tail, I think, will only display the last 10 lines of every update. If you have a file that gets updated in batch, i.e. 50  lines a time like this server does, then you&#039;ll miss a lot of lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: def ZA</title>
		<link>http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/comment-page-1/#comment-24</link>
		<dc:creator>def ZA</dc:creator>
		<pubDate>Thu, 17 May 2007 19:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/04/27/auto-scrolling-apache-log-script/#comment-24</guid>
		<description>Um, does this do what &lt;em&gt;tail&lt;/em&gt; does?

tail -f /var/log/apache2/access.log

updates whenever the file changes. AFAIK

Cheers,

David</description>
		<content:encoded><![CDATA[<p>Um, does this do what <em>tail</em> does?</p>
<p>tail -f /var/log/apache2/access.log</p>
<p>updates whenever the file changes. AFAIK</p>
<p>Cheers,</p>
<p>David</p>
]]></content:encoded>
	</item>
</channel>
</rss>
