Please understand about libssh2_channels, you'll get idea how libssh2 works. channel_exec() is to execute commands, and CHANNEL is like virtual terminal, your all contents and history will be on CHANNEL, so, if you have executed CD command, then it'll change directory on channel, so, next command execution using EXEC follows the above directory change.
On Sep 14, 2010, at 12:42 PM, double wrote: > Hi, > > Is there a chance to change the working directory > before calling `libssh2_channel_exec()`? > > Thanks > Marcus > _______________________________________________ > libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
