Have you tried going into the shell and executing the command by hand?CrazyCat wrote:hi there,
I'm trying to do a tcl using rrdtool, but it seems that the exec command have some limitations....
It don't takes all the arguments I pass:
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"]
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
Is there a way to use more than 150 chars in an exec command?
Code: Select all
package require Rrd
Code: Select all
Rrd::update mystats.rrd --template numLines:numActions N:$lines:$ations