Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Expect Script Tutorial: Expressions, If Conditions, For Loop, and While Loop Examples

Jan 20, 2011, 22:35 (0 Talkback[s])
(Other stories by Balakrishnan Mariyappan)

"Expect scripting language is easy to learn. It expects specific string, and sends (or responds) strings accordingly.

"If you are new to expect, read our 6 expect script examples (including hello world example) to get a jump start.

"This article explains the following in the expect scripting language.

* Expressions – arithmetic operation
* if construct in expect
* looping constructs

"Define Expect Variables – set command

"In expect, you can set the variable values using set command as shown below,"

Complete Story

Related Stories: