Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Expect: looping until there is no more input from spawn
- Date: Wed, 12 Mar 2008 09:01:52 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] Expect: looping until there is no more input from spawn
- References: <d8fcc0800803102000r786e54d0k1dd2c5bb52271da6@mail.gmail.com> <20080311060852.GA12775@P3.quark.dom> <d8fcc0800803110509i7a98e02j409e1aa162762d88@mail.gmail.com>
On 11/03/2008, Josh Glover <jmglov@example.com> wrote: > On 11/03/2008, Edward Wright <edw@example.com> wrote: > > > Idea #2: > > Use a conditional expect and test for the return value (or eof) in the > > loop, and if so, break out: > > > > expect { > > eof { > > break > > } > > your stuff > > } > > This should almost certainly work. Ed, this worked like a charm! Thanks, and I owe you a pint (and not Budweiser, either--unless it is the Czech one!). -- Cheers, Josh
- Follow-Ups:
- Re: [tlug] Expect: looping until there is no more input from spawn
- From: Edward Wright
- References:
- [tlug] Expect: looping until there is no more input from spawn
- From: Josh Glover
- Re: [tlug] Expect: looping until there is no more input from spawn
- From: Edward Wright
- Re: [tlug] Expect: looping until there is no more input from spawn
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Freely distributable Japanese capable utf8 font?
- Next by Date: Re: [tlug] Expect: looping until there is no more input from spawn
- Previous by thread: Re: [tlug] Expect: looping until there is no more input from spawn
- Next by thread: Re: [tlug] Expect: looping until there is no more input from spawn
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links