Re: [libssh2] execute remote command and get result

2009-02-11 Thread Maverick
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

Re: [libssh2] execute remote command and get result

2009-02-10 Thread Maverick
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

Re: [libssh2] execute remote command and get result

2009-02-06 Thread Peter Stuge
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 ---

Re: [libssh2] execute remote command and get result

2009-02-06 Thread Maverick
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

Re: [libssh2] execute remote command and get result

2009-02-06 Thread Peter Stuge
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