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

	<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-01-10T12:20:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-01-10T12:20:17-04:00</updated>

		<published>2007-01-10T12:20:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69584#p69584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69584#p69584"/>
		<title type="html"><![CDATA[Re: Services Control]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69584#p69584"><![CDATA[
Why are you trying to execute the password?<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set pw "pw here"eval exec $pw</code></pre></div></div></blockquote>I imagine you want something like this (not tested):<div class="codebox"><p>Code: </p><pre><code>bind pub n !test testproc test args {if {[catch {set su [open "|su root -c /home/test/services/services" r+]putlog "SU(1): [read $su]"puts $su "rootpass";# CHANGE THISputlog "SU(2): [read $su]"close $su} err]} {putlog $err}}</code></pre></div>...but having the root password in plain text in the script might not be such a bright idea.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jan 10, 2007 12:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Talustus]]></name></author>
		<updated>2007-01-08T02:13:07-04:00</updated>

		<published>2007-01-08T02:13:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69548#p69548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69548#p69548"/>
		<title type="html"><![CDATA[Services Control]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69548#p69548"><![CDATA[
Hi @ all im not realy a coder but i need this i have writen a snippet but it didnt work whats wrong ? if Services are going down on one maschine i type !servcontrol and the bot will execute the command to start the services on the maschine but it says can not execute /home/test/sbnc/sbnc - permission denied so i would execute it as root<br><br>first snippet i have tested<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !servcontrol pub_servcontrolproc pub_servcontrol {nick uhost hand chan arg} {putchan $chan "\00312...\00304trying to Start Services on Remote maschine "set serv "/home/test/services/services"eval exec $serv}</code></pre></div> &lt;&lt;&lt;&lt;&lt;&lt; didnt work i get the error can not execute /home/... -permission denied &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br><br>second snippet<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !servcontrol pub_servcontrolproc pub_servcontrol {nick uhost hand chan arg} {putchan $chan "\00312...\00304trying to Start Services on Remote maschine "set su "su root"eval exec $suset pw "pw here"eval exec $pw}bind pub - !servstart pub_servstartproc pub_servstart {nick uhost hand chan arg} {exec "/home/test/services/services"}</code></pre></div>but it didnt work it means  su: wrong password but the pw is corect<br>some ideas or is there a script thats looks every half hour<br>  if Services are online {halt} <br>  if Services are offline exec /home/test/services/services<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8145">Talustus</a> — Mon Jan 08, 2007 2:13 am</p><hr />
]]></content>
	</entry>
	</feed>
