telnet script problem from DOS to AIX

hello,
i made a script with a telnet scripting tool, tst10.exe, the problem is that when i put the commands
send "rlogin aix57\m"
wait "password:"
send "op_syst.\m"
wait "$"

it do the login but a menu appears where you have to choose a terminal type, you have 8 options, 8 types of terminals, and then the script stops...

if i do rlogin to the server nothing like that appear, the same way runs ok with the rest of HP-UX servers... so i dont know what to do...

if anyone knows anything or needs more explanation tell me.

thanks a lot!

Sounds like you simply need to add a:

send "1"

Replace 1 with the number to select the correct terminal type, after:

send "op_syst.\m"

and before:

wait "$"

.

The other way to fix this maybe to put:

export TERM=pcterm

in the Unix user's ~/.profile or ~/.bashrc file, setting the terminal type appropriately.