I want to write a script that does the following on an application running on a remote machine: - telnet to the host machine running the application using its ip address FOR LOOP say 20 times - Send a command which basically logs me into the application e.g.logIn(username, passwrd) - The application responds by sending a login successful message. - I disconnect from the telnet session i.e. CTRL + ]. - Reconnect again by telnet as above END LOOP