From: Austin S. <te...@of...> - 2008-05-23 23:34:49
|
On Fri, May 23, 2008 at 03:34:52AM -0700, Salvador Fandino wrote: > Hi, > > Austin Schutz <te...@of...> wrote: > > > The issue you claim is that data is dropped when more than 512 bytes of > > data are passed to syswrite. I don't see how this can be an expect issue. At > > no point are you sending that much data through a pty. > > Well, yes, the bug was not in Expect, but the solution was to change the way Expect is used (actually the PTY) limiting its usage to the authentication phase. It is described here: http://perlmonks.org/?node_id=688097. > > Maybe it could be added to the Expect FAQ as it seems a useful idiom. > Accessing stdin/out independently of pty seems useful, imo. I agree w/ this as a general faq answer if it works generally. There could be cases where people need to interact with 'more' or 'less', e.g. Austin |