This is expect-specific, and very weird.
Basically, I've created a routine that telnets into certain devices, executes commands, expects a certain range of output depending on the command, then sets the output to a variable which is then searched for certain conditions. For example, it will...
This seems like it should be simple but for the life of me I can't seem to peg this; I'm using expect to telnet into a device and issue commands. What I want to do is then expect certain things in the output, and then execute other commands based on what it sees. The problem is, I need it to...
I'm working on some test tools using expect, and I want to create a series of functions that each issue a series of commands to check and gather output. I'd like to be able to use these as part of a library which can be called from other scripts, but I'm running into the following problem...
I've got a text widget that I've associated with a variable (x), and I'm trying to cause text messages to appear in the widget, with a pause in between each message. I tried the following:
$x insert end "Message 1\n"
after 300
$x insert end "Message 2\n"
after 300
$x...
I've come up with a little Tcl script, and it runs fine if you have Tcl 8.3.4.2 installed on your machine...however, I'd like to use Freewrap to distribute it. When the wrapped program is used on a station which doesn't have Tcl installed, however, people get the error:
Error: can't find...
I'm trying to use freewrap to convert my TCL script to an executable; it works, and the script launches ok, but it's choking on all my Expect commands (this tool is used for automation testing so I use expect a lot). Is there any way to make freewrap and expect play nicely together that anyone...
This is probably simple, but I can't seem to find the answer to this one; I'm building a tool that uses a lot of text widgets to display output, status messages, etc. and each widget uses a scrollbar.
I've got the messages etc. directed to the text widget without any problems and it works well...
I'm calling a proceedure that needs to be passed a series of variables, and I want one of the variables passed to be a list.
Basically, I have a while loop and for each iteration of the loop at one point it checks a series of radiobuttons and makes a list based on each one which has been...
Using Tk, I've created a series of buttons for a series of slots, and I've grouped the buttons into groups of 2. These buttons are packaged in frames as in the example below:
frame .slot1and2
button .slot1and2.slot1board1
Later, I call up a proceedure to cycle through different board types...
I have an instance where I generate a series of radio buttons in a loop, which use the variable x$c (where c is the current iteration of the loop, so I get x1, x2, x3, etc)...later, I need to call this variable in an if statement if { $x$c == $y }...when I do this, I get an error 'can't read...
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.