[tkined] heelp on uagent-2.1

Zhili Zhang (zzhang@plains.nodak.edu)
Wed, 23 Sep 1998 17:48:18 +0200

Hi,

I installed Premuz's uagent (unix agent) v2.1 on Solaris 2.6. Tcl-tk is
8.0.2 and scotty is 2.1.9. When I run uagent.tcl &, it has the following
error message:

bad variable name "sysLocation": upvar won't create namespace variable
that refers to procedure variable
while executing
"upvar #0 tnm_system($var) $var"
("foreach" body line 2)
invoked from within
"foreach var [array names tnm_system] {
upvar #0 tnm_system($var) $var
}"
(file "/home/zzhang/tcl-tk/uagent-2.1/uagent_config.tcl" line 136)
invoked from within
"source $agentSourceDir/uagent_config.tcl"

The portion of source code is as follow:

# For backward compatibility with scotty-2.0.2.
#
if {$scotty_ver >= 2.001000} {
# scotty 2.1.x uses the tnm_system array for holding the variables in
# the system group, while scotty 2.0.2 uses the corresponding scalars.
#
foreach var [array names tnm_system] {
upvar #0 tnm_system($var) $var
}
}

I comment out the foreach loop in the about code. However, I cann't read
variable sysUpTime which will be used in other part of the agent. Can
anybody offer help?

Thanks!

Zhili

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.