Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

How to run the following expect commands in a loop?

$
0
0
Code:

spawn fbat
expect ">>"
send "log fbatPW80_OR8sim1 \r"
expect ">>"
send "load map.map \r"
expect ">>"
send "load fbatPW80_OR8sim1.ped \r"
expect ">>"
send "fbat -v1 \r"
expect ">>"
send "log off \r"
expect ">>"


I need the above code to run in a loop such that script keeps doing a telnet to the device.
Please suggest, very appreciate.

Viewing all articles
Browse latest Browse all 16232

Trending Articles