Hi,
Is it possible to read stream files like /dev/input/mouse0 using SSH.NET?
Following example doesn't work because after starting "cat /dev/input/mouse0" no output is being recieved at all.
Is it possible to read stream files like /dev/input/mouse0 using SSH.NET?
Following example doesn't work because after starting "cat /dev/input/mouse0" no output is being recieved at all.
var shell = client.CreateShellStream("", 80,24,800,600,8192);
while (shell.DataAvailable)
{
APILogger.GetInstance().AddMessage(shell.ReadLine());
}
shell.WriteLine("sudo su");
shell.WriteLine("donotchange");
shell.WriteLine("cat /dev/input/mouse0");
while (true)
{
if (shell.DataAvailable)
{
APILogger.GetInstance().AddMessage(shell.Read());
}
}
Putty works fine and is constantly recieving new data. Any ideas why SSH.NET is not?