Subject: Re: Change working directory

Re: Change working directory

From: Paresh Thakor <>
Date: Tue, 14 Sep 2010 13:04:56 +0530

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

Received on 2010-09-14