wonggla
asked on
Do you have KSH Script examples ON UNIX SCRIPT using TELNET?
Do you have Script examples ON UNIX SCRIPT using TELNET?
I do not have expert yet, but I need to write a UNIX KSH script to telnet to a TEXT Based system, and then enter a few commands to get to the right MENU and then save all of the screen return to a file so that I can verify the result later.
This is all in BACKGROUND JOB, I will not run the TELNET Interactively!!!!
Please HELP;-)
I do not have expert yet, but I need to write a UNIX KSH script to telnet to a TEXT Based system, and then enter a few commands to get to the right MENU and then save all of the screen return to a file so that I can verify the result later.
This is all in BACKGROUND JOB, I will not run the TELNET Interactively!!!!
Please HELP;-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I user PERL to do telnet and extract text after I connected!
https://www.experts-exchange.com/questions/10126049/telnet-from-a-shell-script.html
https://www.experts-exchange.com/questions/20371033/Connect-to-Telnet-via-ksh-script.html
Using "expect" (which is reliable and ideal for this sort of task):
https://www.experts-exchange.com/questions/10241151/Need-help-writing-a-script-in-Linux-Unix.html