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

	<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-12-20T14:59:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-12-20T14:59:58-04:00</updated>

		<published>2007-12-20T14:59:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79469#p79469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79469#p79469"/>
		<title type="html"><![CDATA[Basic Respond to Trigger Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79469#p79469"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub o !uname do:unameproc do:uname {nick uhost hand chan text} { puthelp "privmsg $chan :Uname -a result:" foreach line [split [eval exec {uname -a}] \n] {  puthelp "privmsg $chan :$line" } return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 20, 2007 2:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jekimbal]]></name></author>
		<updated>2007-12-20T12:09:09-04:00</updated>

		<published>2007-12-20T12:09:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79466#p79466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79466#p79466"/>
		<title type="html"><![CDATA[.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79466#p79466"><![CDATA[
Actually found this script on the forum<br><br>bind pub o !exec doexec<br>proc doexec {nick uhost hand chan text} {<br>   puthelp "privmsg $chan :Shell command results:"<br>   foreach line [split [eval exec $text] \n] {<br>      puthelp "privmsg $chan :$line"<br>   }<br>   return 1<br>} <br><br><br><br>Now how can I modify this so like !exec will only allow the imput uname -a and no other commands and will only exec uname -a<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9543">jekimbal</a> — Thu Dec 20, 2007 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jekimbal]]></name></author>
		<updated>2007-12-20T11:49:17-04:00</updated>

		<published>2007-12-20T11:49:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79465#p79465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79465#p79465"/>
		<title type="html"><![CDATA[Basic Respond to Trigger Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79465#p79465"><![CDATA[
I have a few shell commands that id like to execute based on a trigger thats in channel<br><br>like someone types<br><br>!command it will exectute whatever I want that trigger to execute from a console point and output it to the channel<br><br>so this wont be one of them but basically lets say I wanted someone to be able to type<br>!uname in channel it would execute uname -a on the console machine than output the response to the channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9543">jekimbal</a> — Thu Dec 20, 2007 11:49 am</p><hr />
]]></content>
	</entry>
	</feed>
