Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Net::Telnet different promptsby emcek (Initiate) |
on Jun 12, 2013 at 09:52 UTC ( [id://1038421]=perlquestion: print w/replies, xml ) | Need Help?? |
emcek has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Of course I need write some Telnet code in perl but i have some problems. My system support diffrent types of prompt with different functionality, so: 1. login prompt:
2. 'linux' kind prompt root@hapWibbSc2:~# 3. agent prompt:
How to detect in which prompt am I, because there is different types of command in every. And second problem when I grabbing out put of command sometime if output is longer it print "--More--" waiting for <space> key from user to print rest how to decect is and send <space> and grab rest of output. i.e.
Anyhelp will be grate!
Back to
Seekers of Perl Wisdom
|
|