I'm new to the Java world, and previously worked with Tcl...in TCL, there is a command called 'subst' which basically allowed for this:
proc setInfo {param val} {
set $param $val
return "Param $param was set to [subst $$param]"
}
setInfo name Bob
Param name was set to Bob...
I feel like I'm missing something obvious here, but if anyone could help I'd appreciate it. Basically, I've got a TCL analyzer that captures packets. So that the capture can run at the same time as the generator, I spawn the generator as a new process using a standalone tcl script. This...
In my automated environment, I launch a 'DUT object' that is mapped to the device being tested...I communicate with the CLI, etc all through this object.
This object gets created whenever I launch a config using a proc called 'readTestConfig'...this reads the config file, and spawns the DUT...
I've got an automated telnet and login piece that works fine (prompts for username and then password), but there's another bit in the CLI I need to automate where you alter the login password, and it prompts you to confirm the password before continuing, and therein lies the problem.
I assumed...
I was previously running TCL 8.3 and there is a bit in our infrastructure here that basically execs another file. So, within a method, I have something like:
eval exec module1.tcl $args
Then inside module1.tcl it parses the args, etc and runs a series of commands.
This worked fine in tcl 8.3...
I understand that tclx is no longer a separate binary but was folded in as an extension in 8.4 - I've kind of inherited a system that was already in place and our packet generator is no longer working because it is looking for the tcl executable and can no longer find it. On the tcl site I saw...
Sorry if this is daft, but basically my situation is this:
I've written a protocol tester in ITCL that our TCL harness here utilizes via a series of test scripts. I'm working with someone else in another group who has come up with a test creator, and we want to make the two work together.
I...
I have a proc that converts hex IP address and hex mask into a broadcast address. This worked with TCL 8.3 but I'm hitting a problem with TCL 8.4
Basically, the proc does the following:
set hexIP 80010101
set hexMASK ffff0000
set IPM [expr ( $hexIP | $hexMASK ) ]
-2147352577
format "%08x"...
Sorry if this is a no-brainer but I'm having trouble tracking this down...I've got a class with a bunch of methods and when the object is created everything works fine. The problem is, I have another class object which I want to interact with the first one, and one of the things I want it to do...
Sorry if this is a simple question, but I just can't figure out how to do it (if there is actually even a way to do it). Here's what I'm trying to do:
Say I have a file:
DUT1.tcl
Within that file, I define a class:
itcl::class DUT1 { etc...
Within that class, I define a...
I have a proc that builds streams on a tester...it doesn't have too many arguments but I've got a suite of tests I'm writing that call for a ton of stream adds and deletes, so I'm looking to make it even simpler by creating a proc that, when fed a minimal number of arguments, will build the...
I've encountered an interesting problem...I have a generic proc that sends commands to a cli, and returns the responses. Among other things, I use this to pull the current configuration from the box. In theory, this proc should work no matter what device I use it on, and for the most part this...
I searched around but I didn't find anything that quite seemed what I was looking for...this seems like it should be simple but I just can't figure it out;
I have an array and I want to use variables in it:
set ip [getL3Addr]
set name [getName]
set etc [getOther]
array set info {
test1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.