for automating telnet using shell script.....
as we enter alphabetic characters inside shell script...how can we do the same for the enter key......Is there any character for the enter key
so the enter key need not be pressed manually......
for automating telnet using shell script.....
as we enter alphabetic characters inside shell script...how can we do the same for the enter key......Is there any character for the enter key
so the enter key need not be pressed manually......
you can use \n (newline character)
if in case \n does not work, try \r (carriage return)
If you are attempting to automate interactive sessions within a script try using expect or perl. Expect has a utility called "autoexpect" which is similar to "script". It will record the session that you want to automate while you perform it once. Then simply edit out the noise. Then you may execute the script as many times as you like.
jiin