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

	<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>2007-08-13T06:40:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-08-13T06:40:16-04:00</updated>

		<published>2007-08-13T06:40:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75241#p75241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75241#p75241"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75241#p75241"><![CDATA[
Thanks all. <br><br>I'll first try the open trick to see if it fits my needs. If not, I'll make that cron script.<br><br>Thank you very much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Mon Aug 13, 2007 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-08-13T00:20:16-04:00</updated>

		<published>2007-08-13T00:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75234#p75234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75234#p75234"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75234#p75234"><![CDATA[
I'd make a little shell script to run pisg, and then run that shell script from cron. I posted an example shell script to do just that, in the shell help forum (it also uploads the stats page to an ftp site if you need that as well.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Aug 13, 2007 12:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-08-12T21:18:08-04:00</updated>

		<published>2007-08-12T21:18:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75228#p75228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75228#p75228"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75228#p75228"><![CDATA[
Simple solution is to not use eggdrop to do something that can be done far better server side.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Aug 12, 2007 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-12T21:16:09-04:00</updated>

		<published>2007-08-12T21:16:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75227#p75227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75227#p75227"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75227#p75227"><![CDATA[
The trick here is, output is read as it comes available, being triggered by an event-handler, while "exec" will block until the execution is complete (thus causing your bot becoming unresponsive for several minutes and ping timeout). The "open" command will return instantly, providing a file-handle which you can pretty much use just like any other file, except that you're writing to the program's stdin, and reading from it's stdout.<br><br>The "fileevent" command is what sets up the event-handler to track the opened pipe for a readable-condition, at which readpipe will be called to look for an eof-condition, and try to read one line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Aug 12, 2007 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-08-12T21:06:01-04:00</updated>

		<published>2007-08-12T21:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75225#p75225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75225#p75225"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75225#p75225"><![CDATA[
and this wont cause a ping timeout? because if I get this right, i open pisg, and read it until its closed, but then, it takes 3 minutes to close because it takes 3 minutes for pisg to analyse the log.<br><br>If i'm wrong please tell me so, thanks for the reply btw!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Sun Aug 12, 2007 9:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-12T20:13:49-04:00</updated>

		<published>2007-08-12T20:13:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75223#p75223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75223#p75223"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75223#p75223"><![CDATA[
There is the option of using the <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/open.htm" class="postlink">open</a> command with pipes.<br><br>Something like this should be a good start:<div class="codebox"><p>Code: </p><pre><code>proc readpipe {fid} { if {![eof $fid]} {  putlog "pisg: [gets $fid]" } {  close $fid }}set fid [open "|pisg bla ..." "RDWR"]fconfigure $fid -blocking 1fileevent $fid readable [list readpipe $fid]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Aug 12, 2007 8:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-08-12T19:03:26-04:00</updated>

		<published>2007-08-12T19:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75222#p75222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75222#p75222"/>
		<title type="html"><![CDATA[Exec without ping timeout.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75222#p75222"><![CDATA[
So I'm executing pisg with a HUGE logfile, but most of the time it disconnects the eggdrop with ping timeout because it takes like 2 and a half minutes for pisg to analyse it.<br><br>Now, is there a way to execute pisg without being disconnected?<br><br>Thanks in advance. (if you want, ill post the tcl script)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Sun Aug 12, 2007 7:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
