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

	<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>2013-02-04T08:09:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[EzMe]]></name></author>
		<updated>2013-02-04T08:08:38-04:00</updated>

		<published>2013-02-04T08:08:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100900#p100900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100900#p100900"/>
		<title type="html"><![CDATA[[SOLVED] Small exec question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100900#p100900"><![CDATA[
I was able to fix it with this method:<br><div class="codebox"><p>Code: </p><pre><code>### !statusbind pub * !status pub_status proc pub_status { nick host handle chan text} {         catch { exec ./status.sh } output       set grr $output        if {$grr == ""} {           putmsg $chan "\002\0034::\003 rcrack is not running\002"      return   }      if {$grr != "0:00"} {           putmsg $chan "\002\0034::\003 rcrack is running for $grr minutes..\002"}    close $grr}</code></pre></div>where status.sh contains the following line:<br><br><div class="codebox"><p>Code: </p><pre><code>ps aux | grep -i '[r]cracki_mt' | awk '{print $10}'</code></pre></div>Topic can be closed. Thanks for the reply <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12176">EzMe</a> — Mon Feb 04, 2013 8:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-18T21:57:54-04:00</updated>

		<published>2013-01-18T21:57:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100634#p100634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100634#p100634"/>
		<title type="html"><![CDATA[[SOLVED] Small exec question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100634#p100634"><![CDATA[
Try<br><div class="codebox"><p>Code: </p><pre><code>### !status bind pub * !status pub_status proc pub_status { nick host handle chan text} {         catch { exec ps aux | grep -i rcracki_mt | awk '{print \$10}' } status         putmsg $chan "\002\0034::\003 rcrack is running for $status \002" } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Fri Jan 18, 2013 9:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EzMe]]></name></author>
		<updated>2013-02-04T08:09:32-04:00</updated>

		<published>2013-01-16T06:05:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100615#p100615</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100615#p100615"/>
		<title type="html"><![CDATA[[SOLVED] Small exec question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100615#p100615"><![CDATA[
Lo all <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I'm trying to find out true a tcl script how long a linux application is running true the following script:<br><div class="codebox"><p>Code: </p><pre><code>### !statusbind pub * !status pub_statusproc pub_status { nick host handle chan text} {  catch { exec ps aux | grep -i rcracki_mt | awk '{print $10}' } status   putmsg $chan "\002\0034::\003 rcrack is running for $status \002"}</code></pre></div>When I run it in bash it returns me for example the following information as expected:<br><div class="codebox"><p>Code: </p><pre><code>[ezme@EzMe r2d2]$ ps aux | grep -i rcracki_mt | awk '{print $10}'3:12</code></pre></div>When I run it true my eggie <br><div class="codebox"><p>Code: </p><pre><code>[10:11] &lt;@EzMe&gt; !status[10:11] &lt;R2D2&gt; :: rcrack is running for can't read "10": no such variable </code></pre></div>So it seems i need to put the command in quotes or something but that doesn't seem to work eather. Als i tried putting the command in a variable but again no succes.<br><br>Any idea's on how to tackle this problem? <br><br>Thanks in advanced <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Grtz EzMe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12176">EzMe</a> — Wed Jan 16, 2013 6:05 am</p><hr />
]]></content>
	</entry>
	</feed>
