I can't reproduce it, sorry.
Works for me.
Works for me.
try
{
client.Connect();
SshCommand cmd = client.CreateCommand("grep bla /tmp/foo");
var asynch = cmd.BeginExecute();
while (!asynch.IsCompleted)
{
Console.WriteLine("Waiting...");
System.Threading.Thread.Sleep(100);
}
cmd.EndExecute(asynch);
Console.WriteLine("Exit-Status: " + cmd.ExitStatus);
Console.WriteLine("Result: " + cmd.Result);
}
catch (Exception e)
{
Console.WriteLine(e);
}