This project is read-only.

Run one by one command

Oct 3, 2012 at 4:27 PM
Edited Oct 3, 2012 at 4:28 PM

Hi, first of all thank you for this amazing project, it really helps me a lot.

This is my issue.

Is it possible to work with command in a similiar way as in a classic command line? Let's say I run the command mkdir mydirectory, after cd mydirectory and after ls and I get the empty string?


I found out it works like that:

 var cmd = client.CreateCommand("mkdir mydirectory;cd mydirectory;ls");


But can it work somehow like that?


var cmd = client.CreateCommand("mkdir mydirectory"); 

cmd.Execute("cd mydirectory");



If I run it like that I get files of the root directory, not of a directory. Is there any solution?


I also wanted to ask about the shell. Is there some code with working shell sample? I looked at the documentation but didnt find anything.


Thank you

Dec 20, 2012 at 7:43 PM




No it will not work since each command execution creates a new session on the server and one session does not know about other or previous sessions.


Hope it helps, sorry for delay in reply.