Re: Columns setting not working on SSH connection - WeOnlyDo Discussion board

Re: Columns setting not working on SSH connection (General questions)

by woddrazen, Tuesday, January 24, 2012, 15:43 (4484 days ago) @ Hannes Lowette

Hannes,


Can you maybe try something like this and check how it works.
[code] WeOnlyDo.Client.SSH ssh1 = new WeOnlyDo.Client.SSH();

ssh1.Hostname = your_hostname ;
ssh1.Blocking = true;
ssh1.Login = your_login ;
ssh1.Password = your_password ;
ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSH2;
ssh1.Columns = 200;
ssh1.Connect();

ssh1.WaitFor( regex:[\$ #>] $ );
ssh1.DataReady = 0;
Console.WriteLine(ssh1.Execute( echo 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
, regex:[\$ #>] $ ));[/code]
you should received output inside one column because Columns Property ti set to 200.


Drazen


Complete thread: