Andrew Joseph's Weblog Andrew Joseph's Weblog All General 64 Bit computing to... Main School Project Wednesday August 11, 2004 tcl/tk programming In an effort to write a gui for a program allowing users to input a hostname and choose to log into telnet/console/lom, I have taken up learning some tk. Maybe it's just me, but some of it seems counterintuitive. For many of the objects (like buttons) created, you must first name it and then configure it and then use a geometry manager to display it. It works in a bottom-up structure that sometimes makes it hard for me to visualize. So far the program is coming along nicely, except for the login part. I want a terminal to pop-up and telnet to a machine when someone clicks a button associated to the hostname, but it looks like I have to use expect for that. Oh well, more to learn. Permalink Comments [4] Comments: You want the telnet to be under control of your Tcl/Tk program, or you want it to pop up and let the user log in? If the former, yes, use Expect, it's great for exactly that. If the latter, just use "exec" to run it. Posted by Dave Marquardt on August 11, 2004 at 11:21 AM PDT | |
|