[Trilug-ontopic] YAEQ (yet another Expect question)

Greg Brown gwbrown1 at gmail.com
Wed Jan 20 15:20:24 EST 2010

oh, I wasn't bashing anything.. the "I don't have time to learn python" was
a joke towards a friend of mine who always comes up with Python solutions to
my Perl/Expect problems.  I could have been more clear on that.  He just
like to rub it in that I should learn Python and he's right, if only for the
time to squeeze it in somewhere.

Thanks, I'll give your suggestion a try and I appreciate the assistance!!


On Wed, Jan 20, 2010 at 3:12 PM, Michael Peters <mpeters at plusthree.com>wrote:

> On 01/20/2010 03:02 PM, Greg Brown wrote:
>     my($which, $why, $match, $before, $after) = $ssh->expect(30,"greg*:");
> This regular expression doesn't mean "greg"-followed-by-anything. It means
> "greg"-followed-by-0-or-more-"g". So it matches greg, gregg, greggg, etc.
> You need it to be "greg.*:".
> Btw, this is same in just about any regular expression implementation
> (Python, Perl, etc).
>   Any ideas?  I'd really like to get this working.
> Just a thought that you might get more helpful responses if you don't first
> bash the technology before asking for help (that's how I interpreted the "I
> don't have time to learn python" comment).
> --
> Michael Peters
> Plus Three, LP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.trilug.org/pipermail/trilug-ontopic/attachments/20100120/7bed47ef/attachment.htm>

More information about the Trilug-ontopic mailing list