Error while doing telnet

Hi,

iam trying to connect a remote AIX machine using telnet and executing some remote commands like ssh... But its not giving the proper output. Then I redirected the script standard output to a file. This was the error I got.

getwinsize:ioctl: A specified file does not support the ioctl system call.

Anybody got any idea????

Thanks in advance..

Vipin C

This could be easier to help you with if you could post the part of the script that is causing the error.