Unix

How to read some text on a particular line from stdout (standard output file) using expect?.

can anyone give some idea?

Try taking a look at the following tutorial
http://www.raycosoft.com/rayco/support/expect_tutor.html

It explains all of the basics.

Cheers
ZB