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....

Use perl if you can - there are telnet modules available on CPAN.

Cheers
ZB

Sorry i havent used Perl.....but i need to do it into the script...thanks anyway...please helpppppppp....