telnet and cut

Hi

In my script I am using a command that is executed on a telnet'ed server. This command works well if it does not have cut in it

but If I execute the command using cut -d\":\" -f2, the output is nill

i tried this command locally and it works fine even if I added the cut command.

any idea how to troubleshoot further?

thx

If it works correctly elsewhere it has to be the telnet client's terminal settings.
Try

echo $TERM

and see what you get - it should be something reasonable, something your client can emulate.

Then see what terminal emulation the telent client has set.

The stty command will show you how the host has some key sequences set as well.