The Forum "Post Here to Contact Site Administrators and Moderators" is not intended for unix questions. It is for people who are having some trouble with the forum itself. So I have moved the thread.
For an example of a script that telnets, see: changepass automate password changes on multiple systems