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

	<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>2008-07-16T10:09:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-16T10:09:53-04:00</updated>

		<published>2008-07-16T10:09:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84010#p84010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84010#p84010"/>
		<title type="html"><![CDATA[reading last line of logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84010#p84010"><![CDATA[
I think what Sir_Fz was referring to, was to write a script that is capable of recovering from an unreachable host by itself, rather than requiring your whole bot to be restarted...<br><br>As for your question, run a crontab with a simple bash-script, something like this:<div class="codebox"><p>Code: </p><pre><code>if test ` tail -n 1 somelog | grep "couldn't open socket: host is unreachable -c` -ne 0 then kill -9 `cat pidfile` ./configfilefi</code></pre></div>(Modified from a script I used to track apache-logs, might need further modifications...)<br><br>Of course, this is only one way of doing it with bashscripts, you could probably write something equivalent in tcl, perl, C, etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jul 16, 2008 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzLive]]></name></author>
		<updated>2008-07-15T20:52:43-04:00</updated>

		<published>2008-07-15T20:52:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84003#p84003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84003#p84003"/>
		<title type="html"><![CDATA[reading last line of logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84003#p84003"><![CDATA[
it's not the script - its just the website sometimes causes it to do that.<br>but thanks for the useless reply anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9123">NewzLive</a> — Tue Jul 15, 2008 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-07-15T07:48:49-04:00</updated>

		<published>2008-07-15T07:48:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83989#p83989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83989#p83989"/>
		<title type="html"><![CDATA[reading last line of logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83989#p83989"><![CDATA[
That's the worst way for solving this problem. Obviously, this is not a normal behavior for the bot. You should try to fix the script which is causing the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jul 15, 2008 7:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzLive]]></name></author>
		<updated>2008-07-14T21:14:54-04:00</updated>

		<published>2008-07-14T21:14:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83986#p83986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83986#p83986"/>
		<title type="html"><![CDATA[reading last line of logfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83986#p83986"><![CDATA[
Hi there - I'm occasianally getting error messages to do with reading web pages and the only way to resolve it is to kill/restart the bot.<br>I'm wondering if there's a way to read the last line of the eggdrop.log file every few minutes, and if it detects this:<br><br>couldn't open socket: host is unreachable<br><br>then kill the bot?<br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9123">NewzLive</a> — Mon Jul 14, 2008 9:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
