Think u could help me out?
-Original Message-
From: Peter Stuge [mailto:pe...@stuge.se]
Sent: sábado, 7 de Fevereiro de 2009 1:17
To: libssh2-devel@lists.sourceforge.net
Subject: Re: [libssh2] execute remote command and get result
Maverick wrote:
> I can connect, open a channel, write
riginal Message-
From: Peter Stuge [mailto:pe...@stuge.se]
Sent: sábado, 7 de Fevereiro de 2009 1:17
To: libssh2-devel@lists.sourceforge.net
Subject: Re: [libssh2] execute remote command and get result
Maverick wrote:
> I can connect, open a channel, write the command to the channel,
> but
Maverick wrote:
> I can connect, open a channel, write the command to the channel,
> but read the output is not working :(
If you will be using a shell you may want to implement a fake
terminal in your client.
You may want to look into the exec channel type.
//Peter
---
hat I need :(
I can connect, open a channel, write the command to the channel, but read
the output is not working :(
-Original Message-
From: Peter Stuge [mailto:pe...@stuge.se]
Sent: sexta-feira, 6 de Fevereiro de 2009 22:52
To: libssh2-devel@lists.sourceforge.net
Subject: Re: [libssh2] ex
Maverick wrote:
> Hi, is there anyone that can help me out with a simple code to
> exectute a remote command via ssh and get de output of the command:
>
> something like this
>
> r=ssh2_exec(ls -l);
>
> printf ("%s\n",r);
>
> and also check for timeout when executing the command and reading
> t