I am using Ruby’s Telnet class to establish a session with a remote
Linux machine to automate some remote administrative tasks.
The problem I am facing is this- At one point I come across a menu,
where the arrow keys have to be used to select certain options.
Is there any way to represent the arrow keys in the string that I am
sending to the remote machine?
Do let me know if you have any other ideas/suggestions?
instead of trying to make ruby know uve pushed an arrow key, think of
what command pressing a certain key does, then try to execute that
command in ruby code
instead of trying to make ruby know uve pushed an arrow key, think of
what command pressing a certain key does, then try to execute that
command in ruby code
Hi Michael,
In this case, only an option is selected in a UI menu … and no, I cant
modify/add or even read the code on the remote machine.
So I will have to send out the symbol(s) for the down arrow key over the
telnet session.