Re: How to control the loop within expect.
- From: "Aric Bills" <aric.bills@xxxxxxxxx>
- Date: 28 Apr 2006 01:26:03 -0700
Maybe something like this:
for {set i 1} {i<10} {incr i} {
set executeCommandB 1
send a commanda
expect {
1 {puts 1}
2 {puts 2}
3 {........; set executeCommandB 0}
}
if {$executeCommandB}
send a commandb
}
}
.
- Follow-Ups:
- Re: How to control the loop within expect.
- From: Hu Junfeng
- Re: How to control the loop within expect.
- From: Hu Junfeng
- Re: How to control the loop within expect.
- References:
- How to control the loop within expect.
- From: hujunfeng
- How to control the loop within expect.
- Prev by Date: How to control the loop within expect.
- Next by Date: Re: How to control the loop within expect.
- Previous by thread: How to control the loop within expect.
- Next by thread: Re: How to control the loop within expect.
- Index(es):