Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Reading directly from /dev/input/ using SSH

$
0
0
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.
                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?

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>