Re: [PHP] expect_expectl: how to show the part of the stream that it is matching against
- Date: Sun, 2 Aug 2015 14:01:51 -0400
- From: Aziz Saleh <azizsaleh@xxxxxxxxx>
- Subject: Re: [PHP] expect_expectl: how to show the part of the stream that it is matching against
On Sun, Aug 2, 2015 at 1:35 PM, JM <jm+php-general@xxxxxxx> wrote:
> Concerning this: http://php.net/manual/en/expect.examples-usage.php
> How do I output the buffer that expect is currently working on?
> It's nice that using expect within PHP is possible at all, but without an
> option to output the current working contents of the stream you are like
> developing in the dark...
> Best regards,
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> FYI Your email went into spam on gmail.
If you want what is coming from the server, you would store the results of
expect_expectl in a variable and output it. Unless you mean something else
by the buffer!