Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: Shell Stream incorrect output. [2190]

$
0
0
Hello. My code example:

```
SshClient client = new SshClient(host, user, password);

client.Connect();

using (ShellStream stream = client.CreateShellStream("xterm", 100, 100, 800, 600, 1024))
{
String line = String.Empty;

while (line != null)
{
Thread.Sleep(1000);

line = stream.ReadLine(TimeSpan.FromSeconds(5));

Console.WriteLine(line);
}
}

client.Disconnect();
```
__Case 1: missing /root/menu.sh file in my .bashrc script (Debian - russian locale).__

My program output:

```
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jun 23 17:58:22 2014 from 192.168.0.21

111111111
-bash: /root/menu.sh: Нет такого файла или каталога
или каталога
�лога
а
```

Putty output:

```
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jun 23 17:59:01 2014 from 192.168.0.21

111111111
-bash: /root/menu.sh: Нет такого файла или каталога
```

There are some strange strings in my program output:
```
или каталога
�лога
а
```

__Case 2: no /root/menu.sh file in my .bashrc script (Debian - russian locale).__

My program output:

```
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jun 23 18:09:51 2014 from 192.168.0.21

111111111
```

Putty output:

```
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jun 23 18:06:22 2014 from 192.168.0.21
111111111
```

All OK !!!

__Case 3: missing /root/menu.sh file in my .bashrc script (CentOs - default locale).__

My program output:

```
Last login: Mon Jun 23 18:16:06 2014 from 192.168.0.21
-bash: /root/menu.sh: No such file or directory
```

Putty output:

```
Last login: Mon Jun 23 18:15:01 2014 from 192.168.0.21
-bash: /root/menu.sh: No such file or directory
```

All OK !!!
Comments: ** Comment from web user: drieseng **

I tried to reproduce this issue (using locale ru_RU.utf8), but it worked just fine.
Is it possible for you to test using the latest beta release (or SSH.NET built from TFS/SVN) ?


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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