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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anybody using Expect

Status
Not open for further replies.

tmpalaniselvam

Programmer
May 14, 2000
68
IN
Hi!
I have downloaded below links.
Expect 5.21 - Setup
====================
ftp://bmrc.berkeley.edu/pub/winnt/tcltk/expect/expect-5.21r1b1-setup.exe

Expect 5.21 - Source Code
=========================
ftp://bmrc.berkeley.edu/pub/winnt/tcltk/expect/expect-src-5.21r1b1.zip

I installed setup. I don't know how to work on expect..
Anybody initiate my expect learning.........
Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com
 
A couple of things I guess.

1) The win port of expect for NT is badly broken
according to the current developer, so I would not attempt to use it on an NT machine unless you really need to.

2) Expect is a subset of tcl that brings additional
functionality through added command sets.
1|expect: and all it's options
2|send: and all it's options
3|interact: and all it's options
4|spawn :and it's options

In addition there are some common C functions sets, like
fork(),signal handling and control capabilities and a
built in debugger and trace facility.

There are some important differences in how you would use expect and tcl.
Expect is used to interact and control an existing program. It basically is most used to automate repetitive
and tiresome tasks or hard to deal with interaction
sequences involving multiple processes.
There are plenty of example scripts in the packages
you downloaded, you can look those over for examples.

 
Hi,
Thanks marsd! My top priority is, developing test scripts for WinNT.
Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top