I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time
for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or
on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news,
I hope these links will serve you well.
Posted on 2008-01-28 20:45:54-08
by oliverin response to 6957
Re: How to send a carriage return?
No I can't see exactly if there is anything wrong, although I don't know which command you are trying to run. From your previous post and latest post, my best guess would be for you to do something like this:
String => 'issu runversion 2 slavebootflash:cat4500e-entservicesk9-mz.122_44_SG_249.alpha',
Match => ['/Proceed/'],
String => "\n",
Match => ['//'],
I think you need two stages because the reload might never return a prompt, so the // lets the module accept that. In my experience it's also easier to match on just a part of the response e.g. "Proceed" rather than the whole line, because it's more reliable. Your mileage may vary, I guess.