Problem with tip utility in unix

Hi ,
I have wrote a telnet clinet application to interact with remote system . This program takes the screen shots for every interaction and send back to us. After connecting to remote machine , i want to call tip utility to interact with a device which is connected to one remote system. Now my problem is started. i am getting the interaction up to in entered the command tip xxx.
After that i got the string is connected. From this step to i am not getting any string.
I am succeeding this process if i do it manually. i dont know the problem why i am unable to get the interactive session of tip utility through my program.
At the same time i am able to call get the session from other utilities of unix through my program

i appresiate for helping on this.

  • regards
    Abc
    .