Isaac,

Executing w/ expectk:
Since I have to 'chmod +x prog.tcl' every time I want to 
run a newly saved vtcl app, I wrote a little script to 
doit called rvt (Run vtcl app).  When I need to change the 
shell, I just add a line to change the reference from wish 
to expectk.  If I can remember it right, here it is:

rvt----------
#!/usr/bin/ksh
chmod +x $1
echo #!/usr/local/bin/expectk > tmp.tcl; cat $1 >> tmp.tcl; mv -f tmp.tcl $1

The question on displaying results in a widget is pretty 
general, Don Libes' _Exploring_Expect_ will guide you on 
how to do this in various ways.

General Question:  I don't know about anybody else, but when 
I open an HTML e-mail, my reader becomes a serious RAM hog 
until I restart it.  Bad e-mailer, but it's what I have to 
work with.  Can we avoid HTML enabled mail?  Am I a jerk for 
asking?

--jim

------------------------
  From: Isaac Matmon 2647 <[EMAIL PROTECTED]>
  Subject: [vtcl] using expectk in vtcl 
  Date: Tue, 27 Jan 1998 15:15:22 +0200 
  To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>


I'm trying to write a program using vtcl for Telnet application. I  wrote the program 
using expect commands
under expectk. After opening the file in vtcl it changes the shell to wish and the 
expect commands are
treated as invalid commands.

How can I display the transactions (commands and responses) on a Text widget.

I'd appreciate any help.

-- 
Best Regards,
Isaac Matmon 
---------------------------------------------------------------------
EMail: [EMAIL PROTECTED] 
Phone: (972)8-9133992 ESN 828-3992   Fax: (972)8-9133264 ESN 828-3264
---------------------------------------------------------------------

 
---------------End of Original Message-----------------

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to