Hi, Peter,
Thanks for your kindly help. I add a line feed and then all perfect.
Yes, I use the shell for interactive mode. This is just a test application.
Thanks again!
Best Regards!
Bill.
--------------------------------------------------
From: "Peter Stuge" <[email protected]>
Sent: Tuesday, September 08, 2009 12:12 AM
To: <[email protected]>
Subject: Re: using ssh2 shell
[email protected] wrote:
I wrote a command to shell and then read the exe result but just
get the write string, why?
The shell echoes back characters that it receives. Otherwise the
command that a user types would not be visible to the user.
Help!
Make sure you also write a line feed after the command.
But I think you are going the wrong direction, the interactive shell
mode is really an interface for humans, not for programs. What is it
you want to accomplish?
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel