Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: zombieZero
  • Content: Threads
  • Order by date
  1. zombieZero

    Newbie question regarding variable name substitution

    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...
  2. zombieZero

    Need multiple processes to share a variable

    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...
  3. zombieZero

    ITCL object issue

    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...
  4. zombieZero

    Expect matching question

    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...
  5. zombieZero

    exec issue in TCL 8.4

    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...
  6. zombieZero

    Trouble with TclX after upgrade to 8.4

    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...
  7. zombieZero

    App needs two-way communication with TCL

    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...
  8. zombieZero

    Problem with format in TCL 8.4

    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"...
  9. zombieZero

    The first point in which an object is called...

    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...
  10. zombieZero

    Is it possible to dynamically load an itcl method?

    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...
  11. zombieZero

    passing a string as proc args

    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...
  12. zombieZero

    Inconsistent results from expect_out(buffer)

    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...
  13. zombieZero

    array question

    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...

Part and Inventory Search

Back
Top