Hi
I have been trapped in a problem and I hope that you guys will help me. The problem is while telnet to router and I submit a show command and the router gives the first page of output and present "CR to continue--" and stop showing the rest of the output and wait for carriage return. Now the question is how can I interactively enter carriage return "\r". here is the piece of code
$telnet->print('sh ip route');
print $telnet->waitfor('/.+CR to continue--/i' or '/.?+#/i') or die $telnet->errmsg;
It worked for the command output that ask CR once and not worked better for the commands output that are bigger.
Any help would be appreciable.
Thanks !