Using expect with telnet menu
- From: dgl <davelemmon@xxxxxxxxxxx>
- Date: Mon, 29 Oct 2007 16:59:47 -0700
I am trying to write a script to telnet from a power broker jumpbox to
a host. The hosts are listed in a numbered menu that changes
periodically. The list below is similar to my actual list. If i want
to log into host pear.domain.com, I would select "3". If the list is
modified, pear may become option 4 or 2. How can I have expect match
pear.domain.com and return it's current menu option?
==============================================================================
Power Broker Access
==============================================================================
1 apple.domain.com 3 pear.domain.com 5
cherry.domain.com
2 orange.domain.com 4 banana.domain.com 6 lime.domain.com
==============================================================================
Please choose a system:
.
- Follow-Ups:
- Re: Using expect with telnet menu
- From: Glenn Jackman
- Re: Using expect with telnet menu
- Prev by Date: Re: How to spawn ssh in new Window?
- Next by Date: Re: (WWW.CNCIRCLE.COM)cheap wholesale hoodies, jeans, discount. wholesale nike shoes, adidas,puma, lacoste,parada.lv.gucci oulet store
- Previous by thread: Ann. kbskit update
- Next by thread: Re: Using expect with telnet menu
- Index(es):
Relevant Pages
|