Hi,
I'm trying to implement mobile terminal using libssh2 with iPhone OS. I got mobile terminal code from
Source Checkout - mobileterminal - Project Hosting on Google Code
It's SVN repository link..! Please take a look after download. I've implemented my libssh2 function in that application also. But i'm printing command o/p using NSLog

, Now, I need to print the output on the view like what mobile terminal does.
Mobile terminal has 2 teminal views. It does built-in terminal files, so, it outputs everything on view using files, buffering the o/p and commands into file and reading file to print the o/p. My libssh2 code is perfect, mobile terminal code is also perfect. Now, i need to put glue between them both. So, my output of libssh2 comes on to mobile terminal view. I tried to do that, but i need to change my libssh2 command execution coding, i run infinite loop in libssh2 and read o/p with executed commands, right now.
What i need here is to pass command as argument and return o/p to callee function..!
Please anyone can help me let me know or give me suggestion what to do over such topic.!
Regards.