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

	<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>2003-09-30T02:51:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-30T02:51:37-04:00</updated>

		<published>2003-09-30T02:51:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27752#p27752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27752#p27752"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27752#p27752"><![CDATA[
thanx ppslim <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I was thinking it's something like this, but I wanted a confirmation... you just gave it to me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Sep 30, 2003 2:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-09-29T18:58:51-04:00</updated>

		<published>2003-09-29T18:58:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27744#p27744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27744#p27744"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27744#p27744"><![CDATA[
The rrdtool Tcl package command format is exactly the same as the command line version.<br><br>Where on the command line you type "rrdtool &lt;command&gt; &lt;parameters&gt;", in Tcl you use "Rrd::&lt;command&gt; &lt;parameters"<br><br>Ie, if the command line version starts with "rrdtool update", in Tcl, you use "Rrd::update"<br><br>If it starts "rrdtool graph", then you use "Rrd::graph"<br><br>The parameters part doesn't change, only the command used.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Sep 29, 2003 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T12:57:03-04:00</updated>

		<published>2003-09-29T12:57:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27720#p27720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27720#p27720"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27720#p27720"><![CDATA[
no <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>rrdtool is really well, and enough simple to use (because I use some allready existing procedures).<br>If I want to make a really efficient tcl, I've to use the better engine <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=691">CrazyCat</a> — Mon Sep 29, 2003 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-29T12:51:05-04:00</updated>

		<published>2003-09-29T12:51:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27719#p27719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27719#p27719"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27719#p27719"><![CDATA[
or you can do it this way :<br>let the TCL create a batch script where you put the command in and then execute the script with eggdrop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Sep 29, 2003 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T11:30:45-04:00</updated>

		<published>2003-09-29T11:30:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27718#p27718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27718#p27718"/>
		<title type="html"><![CDATA[tutorials???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27718#p27718"><![CDATA[
ppslim, I think your idea is the better (using rrd package), but I've a little trouble:<br>where can I find rrd syntax for tcl?<br>thx if someone has a good link for me <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=691">CrazyCat</a> — Mon Sep 29, 2003 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T11:13:48-04:00</updated>

		<published>2003-09-29T11:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27717#p27717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27717#p27717"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27717#p27717"><![CDATA[
hey! do you really want to making me learn rrdtool syntax? lool <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Ok, so I will.<br>I hope tutorials are simple <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanx a lot for these infos.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 29, 2003 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-09-29T11:05:21-04:00</updated>

		<published>2003-09-29T11:05:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27716#p27716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27716#p27716"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27716#p27716"><![CDATA[
First, lets correct the command.<br><br>It should be on one line, with no wrapping. If you need to wrap onto a second line, then the last caracter on the line should be \<br><br>The only problem with this, is you have opened quotes. Don't.<br><br>The Tcl exec command doesn't use quotes. The command and each argument should be seperate.<br><br>Second thing. Don't use the exec command for rrdtool.<br><br>When compiling rrdtool, make sure you specify the --with-tcl ./configure option. When installinging with "make site-install-tcl", you should have a working Tcl package.<br><br>Within your Tcl script, you can then include the line<div class="codebox"><p>Code: </p><pre><code>package require Rrd</code></pre></div>(the capital is important).<br><br>You then have access to a Rrd Tcl namespace. Each command within the namespace is a rrd command like, create, graph and update.<br><br>One example is<div class="codebox"><p>Code: </p><pre><code>Rrd::update mystats.rrd --template numLines:numActions N:$lines:$ations</code></pre></div>This is far faster than exec, and much more smooth.<br><br>There is allready a rrdtool stats script about, though I am not sure how public it is. I currently use it, though I don't have the original version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Sep 29, 2003 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T11:04:47-04:00</updated>

		<published>2003-09-29T11:04:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27715#p27715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27715#p27715"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27715#p27715"><![CDATA[
yes, using the shell is ok.<br>I really think that the limitation is in the exec command, because changing the $rrdserv variable (adding or removing chars) doesn't change the length of the error message.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 29, 2003 11:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-09-29T10:13:22-04:00</updated>

		<published>2003-09-29T10:13:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27714#p27714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27714#p27714"/>
		<title type="html"><![CDATA[Re: exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27714#p27714"><![CDATA[
<blockquote class="uncited"><div>hi there,<br><br>I'm trying to do a tcl using rrdtool, but it seems that the exec command have some limitations....<br>It don't takes all the arguments I pass:<br>TCL = [exec "$rrdtool create $rrdir/$rrdserv.rrd DS:userslocal:GAUGE:600:U:U DS:ircops:GAUGE:600:U:U DS:usersglobal:GAUGE:600:U:U DS:channels:GAUGE:600:U:U DS:invisibles:GAUGE:600:U:U DS:normals:GAUGE:600:U:U DS:totalservers:GAUGE:600:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797"]<br><br>Eggdrop response: Tcl error: couldn't execute "/usr/local/rrdtool-1.0.45/bin/rrdtool create /home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd DS:userslocal:GAUGE:600:U:U DS:ircops:GAUGE:600:U:U DS:us": no such file or directory<br><br>Is there a way to use more than 150 chars in an exec command?</div></blockquote>Have you tried going into the shell and executing the command by hand?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Sep 29, 2003 10:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-09-29T09:49:11-04:00</updated>

		<published>2003-09-29T09:49:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27713#p27713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27713#p27713"/>
		<title type="html"><![CDATA[exec limitation?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27713#p27713"><![CDATA[
hi there,<br><br>I'm trying to do a tcl using rrdtool, but it seems that the exec command have some limitations....<br>It don't takes all the arguments I pass:<br>TCL = [exec "$rrdtool create $rrdir/$rrdserv.rrd DS:userslocal:GAUGE:600:U:U DS:ircops:GAUGE:600:U:U DS:usersglobal:GAUGE:600:U:U DS:channels:GAUGE:600:U:U DS:invisibles:GAUGE:600:U:U DS:normals:GAUGE:600:U:U DS:totalservers:GAUGE:600:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797"]<br><br>Eggdrop response: Tcl error: couldn't execute "/usr/local/rrdtool-1.0.45/bin/rrdtool create /home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd DS:userslocal:GAUGE:600:U:U DS:ircops:GAUGE:600:U:U DS:us": no such file or directory<br><br>Is there a way to use more than 150 chars in an exec command?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 29, 2003 9:49 am</p><hr />
]]></content>
	</entry>
	</feed>
