Am 14.09.2010 09:34, schrieb Paresh Thakor:
if you have executed CD command, then it'll change directory on channel, so, next command execution using EXEC follows the above directory change.
Hi Paresh, This is also what I thought about. The problem: 1. libssh2_channel_open_session() 2. libssh2_channel_exec( "cd /workingdir" ); 3. libssh2_channel_close() 4. libssh2_channel_wait_closed() 5. libssh2_channel_get_exit_status() Now I can see, if "cd /workingdir" returned "0", but the channel is closed. As far as I understand, `libssh2_channel_get_exit_status()` works only on closed channels. Thanks Marcus _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
