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: Tue, 11 Mar 2008 21:09:35 +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>
On 11/03/2008, Edward Wright <edw@example.com> wrote: > Does Perforce return anything when it's done? If not, presumably there's > an eof? I'm sure it does, but I like your idea #2 best. :) > Idea #1: > use "system" instead of "spawn" and test for the return value in the > condition > > 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. Now that you bring it up, I seem to remember seeing it in examples. I'll add it and let you know next time I have to do a mainline integration. :) -- Cheers, Josh
- Follow-Ups:
- Re: [tlug] Expect: looping until there is no more input from spawn
- From: Josh Glover
- 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
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Re: "Password on localhost"
- Next by Date: Re: [tlug] Apache MPM performance
- 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