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

	<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>2005-01-11T05:54:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-01-11T05:54:25-04:00</updated>

		<published>2005-01-11T05:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45265#p45265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45265#p45265"/>
		<title type="html"><![CDATA[Shell execution with flood protection &amp; capturing output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45265#p45265"><![CDATA[
remember if its windrop then it needs to run in forground mode<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Jan 11, 2005 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-06T11:08:55-04:00</updated>

		<published>2005-01-06T11:08:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45062#p45062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45062#p45062"/>
		<title type="html"><![CDATA[Shell execution with flood protection &amp; capturing output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45062#p45062"><![CDATA[
this will spawn the supplied UNIX command in background, displaying its output as soon as such is available, disabling running new commands until current one is completed (not tested):<div class="codebox"><p>Code: </p><pre><code>set inuse 0bind pub n !exec fooproc foo {n u h c t} {  if !$::inuse {    set ::inuse 1; set f [open "|$t"]    fconfigure $f -blocking 0 -buffering line    fileevent $f readable "moo $f $c"  }  }proc moo {f c} {  puthelp "privmsg $c :[gets $f]"  if [eof $f] {set ::inuse 0; close $f}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Jan 06, 2005 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2005-01-06T09:39:47-04:00</updated>

		<published>2005-01-06T09:39:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45051#p45051</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45051#p45051"/>
		<title type="html"><![CDATA[Shell execution with flood protection &amp; capturing output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45051#p45051"><![CDATA[
I badly need a script to do the following:<br><br>1. React to a a public command in the form of "!command"<br>2. Execute something on the shell (Unix)<br>3. Set a timer so repeating of "!command" in short succession on the channel doesn't work for another X minutes (as a safeguard against flooding / bringing down the machine)<br>4. Scan the output of the shell command until a certain line shows up (execution time may be up to two minutes, output is a couple of lines)<br>5. Once that line has been registered, send some text to the channel<br><br>Any pointers? Any existing script that lends itself to be modified for this purpose? Anyone willing to whip something up quickly?<p>Statistics: Posted by Guest — Thu Jan 06, 2005 9:39 am</p><hr />
]]></content>
	</entry>
	</feed>
