<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: FtpTail &#8211; Monitor the tail of a file via FTP</title>
	<atom:link href="http://blog.hamstersoup.com/2006/05/12/ftptail/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hamstersoup.com/2006/05/12/ftptail/</link>
	<description>Exploring the next wave of data-driven apps</description>
	<lastBuildDate>Wed, 14 Jul 2010 07:48:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Will Moffat</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2619</link>
		<dc:creator>Will Moffat</dc:creator>
		<pubDate>Mon, 14 Sep 2009 18:59:19 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2619</guid>
		<description>Hi Pranav, thanks for the patch. Do you use GitHub? I was planning to move ftptail there so it&#039;s easier for others to improve it.</description>
		<content:encoded><![CDATA[<p>Hi Pranav, thanks for the patch. Do you use GitHub? I was planning to move ftptail there so it&#8217;s easier for others to improve it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pranav Tekchand</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2618</link>
		<dc:creator>Pranav Tekchand</dc:creator>
		<pubDate>Sun, 13 Sep 2009 11:41:19 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2618</guid>
		<description>Thanks for the great script. I used it to ftptail a log which had exploded to a gigabyte on a site.
Some hosts allow multiple domains/sub-domains and give user names like &#039;subdomain@domain&#039; while the ftp host is still &#039;subdomain&#039; making the argument to the script look like subdomain@domain@subdomain (or anotherDomain@originalDomain@anotherDomain). The split at the first @ doesn&#039;t work in that case. A quick change to support that could be the diff pasted below. It adds a -u or --user-name= option. Usage changes to
will@hamstersoup.com/robots.txt
OR
-u will hamstersoup.com/robots.txt
Diff:
20a21
&gt;    -u, --user-name=U        Use the user name U to login (Use if you have an @ in it)
67a69
&gt; 	my $userNameCL=&quot;&quot;;
70a73
&gt; 		&#039;u&#124;user-name=s&#039;      =&gt; \$userNameCL,
75,76c78
&lt;     my $url = shift @ARGV &#124;&#124; &amp;usage(&#039;You must specify a URL to tail. Example: will@hamstersoup.com/robots.txt&#039;);
     my $url = shift @ARGV &#124;&#124; &amp;usage(&#039;You must specify a URL to tail. Example: will@hamstersoup.com/robots.txt OR -u will hamstersoup.com/robots.txt&#039;);
77a80,85
&gt;     if($userNameCL) {
&gt;     $url =~ /([^\/]+)\/(.+)/ &#124;&#124; die &quot;Malformed URL? Cannot extract host/file from $url. user=[$userNameCL] host=[$2] file=[$3]\n&quot;;
&gt;     ($username,$host,$file)=($userNameCL,$1,$2);
&gt;     }
&gt;     else {
&gt;     $url =~ /([^@]+)\@([^\/]+)\/(.+)/ &#124;&#124; die &quot;Malformed URL? Cannot extract user\@host/file from $url. user=[$1] host=[$2] file=[$3]\n&quot;;
78a87
&gt;     }</description>
		<content:encoded><![CDATA[<p>Thanks for the great script. I used it to ftptail a log which had exploded to a gigabyte on a site.<br />
Some hosts allow multiple domains/sub-domains and give user names like &#8216;subdomain@domain&#8217; while the ftp host is still &#8216;subdomain&#8217; making the argument to the script look like subdomain@domain@subdomain (or anotherDomain@originalDomain@anotherDomain). The split at the first @ doesn&#8217;t work in that case. A quick change to support that could be the diff pasted below. It adds a -u or &#8211;user-name= option. Usage changes to<br />
<a href="mailto:will@hamstersoup.com">will@hamstersoup.com</a>/robots.txt<br />
OR<br />
-u will hamstersoup.com/robots.txt<br />
Diff:<br />
20a21<br />
&gt;    -u, &#8211;user-name=U        Use the user name U to login (Use if you have an @ in it)<br />
67a69<br />
&gt; 	my $userNameCL=&#8221;";<br />
70a73<br />
&gt; 		&#8216;u|user-name=s&#8217;      =&gt; \$userNameCL,<br />
75,76c78<br />
&lt;     my $url = shift @ARGV || &amp;usage(&#039;You must specify a URL to tail. Example: <a href="mailto:will@hamstersoup.com">will@hamstersoup.com</a>/robots.txt&#039;);<br />
     my $url = shift @ARGV || &amp;usage(&#8216;You must specify a URL to tail. Example: <a href="mailto:will@hamstersoup.com">will@hamstersoup.com</a>/robots.txt OR -u will hamstersoup.com/robots.txt&#8217;);<br />
77a80,85<br />
&gt;     if($userNameCL) {<br />
&gt;     $url =~ /([^\/]+)\/(.+)/ || die &#8220;Malformed URL? Cannot extract host/file from $url. user=[$userNameCL] host=[$2] file=[$3]\n&#8221;;<br />
&gt;     ($username,$host,$file)=($userNameCL,$1,$2);<br />
&gt;     }<br />
&gt;     else {<br />
&gt;     $url =~ /([^@]+)\@([^\/]+)\/(.+)/ || die &#8220;Malformed URL? Cannot extract user\@host/file from $url. user=[$1] host=[$2] file=[$3]\n&#8221;;<br />
78a87<br />
&gt;     }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moorglade</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2600</link>
		<dc:creator>Moorglade</dc:creator>
		<pubDate>Mon, 27 Apr 2009 20:53:40 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2600</guid>
		<description>Marvelous! I was about to try and hack something together to do exactly this, but thought I&#039;d do a google search first. First hit, and works like a charm. 

You&#039;ve just saved me several hours of fighting with perl - thanks :)</description>
		<content:encoded><![CDATA[<p>Marvelous! I was about to try and hack something together to do exactly this, but thought I&#8217;d do a google search first. First hit, and works like a charm. </p>
<p>You&#8217;ve just saved me several hours of fighting with perl &#8211; thanks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2593</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Wed, 08 Apr 2009 22:19:28 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2593</guid>
		<description>Gold friggin&#039; start for you! I have a webhost that doesn&#039;t rotate it&#039;s weblogs or allow SSH.  This is absolutely perfect and is working like a champ. Thank you very very much!</description>
		<content:encoded><![CDATA[<p>Gold friggin&#8217; start for you! I have a webhost that doesn&#8217;t rotate it&#8217;s weblogs or allow SSH.  This is absolutely perfect and is working like a champ. Thank you very very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ngbakes</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2583</link>
		<dc:creator>ngbakes</dc:creator>
		<pubDate>Fri, 02 Jan 2009 21:31:29 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2583</guid>
		<description>Hi,
I&#039;d just like to ask, as you know perl, and scripting, and I don&#039;t etc etc
do you know of a way I could add ftptail start ftptail status commands?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;d just like to ask, as you know perl, and scripting, and I don&#8217;t etc etc<br />
do you know of a way I could add ftptail start ftptail status commands?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent&#8217;s blog &#187; ftptail</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2570</link>
		<dc:creator>Laurent&#8217;s blog &#187; ftptail</dc:creator>
		<pubDate>Sat, 29 Nov 2008 01:31:13 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2570</guid>
		<description>[...] The script is thoroughly explained on his blog entry. [...]</description>
		<content:encoded><![CDATA[<p>[...] The script is thoroughly explained on his blog entry. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Baker</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2537</link>
		<dc:creator>James Baker</dc:creator>
		<pubDate>Tue, 26 Aug 2008 18:04:00 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2537</guid>
		<description>Oh, I thought I was doing something wrong. Is the period stderr?
I&#039;ll try straightforward &gt;out, and see how that goes.
If it works, thanks for the heads up.</description>
		<content:encoded><![CDATA[<p>Oh, I thought I was doing something wrong. Is the period stderr?<br />
I&#8217;ll try straightforward &gt;out, and see how that goes.<br />
If it works, thanks for the heads up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Moffat</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2524</link>
		<dc:creator>Will Moffat</dc:creator>
		<pubDate>Wed, 06 Aug 2008 14:36:51 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2524</guid>
		<description>Hi James, I don&#039;t quite understand why you need to redirect STDERR to your file as well. But that&#039;s not important.

If you look through the perl code you will see two ways that I print to standard error:
warn &quot;some info&quot;
print STDERR &quot;more info&quot;

Just delete anything you don&#039;t want to appear. For example, line 177
	    &lt;code&gt;print STDERR &quot;.&quot;;&lt;/code&gt;

Hope that solves your problem.
--Will</description>
		<content:encoded><![CDATA[<p>Hi James, I don&#8217;t quite understand why you need to redirect STDERR to your file as well. But that&#8217;s not important.</p>
<p>If you look through the perl code you will see two ways that I print to standard error:<br />
warn &#8220;some info&#8221;<br />
print STDERR &#8220;more info&#8221;</p>
<p>Just delete anything you don&#8217;t want to appear. For example, line 177<br />
	    <code>print STDERR ".";</code></p>
<p>Hope that solves your problem.<br />
&#8211;Will</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Baker</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-2523</link>
		<dc:creator>James Baker</dc:creator>
		<pubDate>Wed, 06 Aug 2008 13:30:15 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-2523</guid>
		<description>I know that this post is quite old, but I am not a programmer and would like some help.I use ftptail to access an ftp logfile for my gameserver.

Basically, I have a bot (bigbrotherbot.com) that is a series of python scripts that read the logfile, and communicate with the gameserver via rcon. It warns and bans for stuff like swearing, spamming, recruiting, etc. However, the normal version needs to be run on the same server as the game. I use ftptail to make the logfile local. It works fine, except for one irratating error:
Every second (the sleep interval I have set) it gets the last 10 lines. If there is not any new lines, it writes a period. bigbrotherbot records this as an error, giving me a syntax error every second.
Since the syntax errors are compuslory for this level of logging (it records important error messages as well), is there any way you could remove the recording of the period at every update, or make it an option?

Also, a hint for those wanting to save the output from this: after the commands, insert &gt;[outputfilename] 2&gt;&amp;1 This saves it to the outputfilename.</description>
		<content:encoded><![CDATA[<p>I know that this post is quite old, but I am not a programmer and would like some help.I use ftptail to access an ftp logfile for my gameserver.</p>
<p>Basically, I have a bot (bigbrotherbot.com) that is a series of python scripts that read the logfile, and communicate with the gameserver via rcon. It warns and bans for stuff like swearing, spamming, recruiting, etc. However, the normal version needs to be run on the same server as the game. I use ftptail to make the logfile local. It works fine, except for one irratating error:<br />
Every second (the sleep interval I have set) it gets the last 10 lines. If there is not any new lines, it writes a period. bigbrotherbot records this as an error, giving me a syntax error every second.<br />
Since the syntax errors are compuslory for this level of logging (it records important error messages as well), is there any way you could remove the recording of the period at every update, or make it an option?</p>
<p>Also, a hint for those wanting to save the output from this: after the commands, insert &gt;[outputfilename] 2&gt;&amp;1 This saves it to the outputfilename.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://blog.hamstersoup.com/2006/05/12/ftptail/#comment-13</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Mon, 04 Sep 2006 18:45:18 +0000</pubDate>
		<guid isPermaLink="false">https://hamstersoup.wordpress.com/2006/05/12/ftptail/#comment-13</guid>
		<description>hi will, 
works ok now with subdomain, user with dash unchecked till now. main functionality: rockin. 
thanks for your quick fix.
sven</description>
		<content:encoded><![CDATA[<p>hi will,<br />
works ok now with subdomain, user with dash unchecked till now. main functionality: rockin.<br />
thanks for your quick fix.<br />
sven</p>
]]></content:encoded>
	</item>
</channel>
</rss>
