telnet with ksh

please i need to make telnet in an script but i cant use delay into the instruction because i dont know how many time takes an instruction to compleate in the other computer.How can i do? is there any form to do that??

please help

sorry for my english....

Please review the rules - cross and duplicate posting is not permitted within the forums.

I will close this duplicate thread.

Thanks
ZB