Re: Missing wait for response in SSH.net buffer an (General questions)
Hi Sunny,
You can use regular expressions in WaitFor and Execute Method if you don't know exact prompt.
Something like this[code] ssh1.Blocking = true;
ssh1.Connect();
ssh1.WaitFor( regex:[\$ #>] $ );
ssh1.DataReady = 0;
Console.Write (ssh1.Execute( ls -al\n , regex:[\$ #>] $ ));[/code]
Can you try that and let us know how it goes.
Regards,
Drazen
Complete thread:
- Missing wait for response in SSH.net buffer and mi - Simon, 2009-04-23, 14:07
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:16
- Re: Missing wait for response in SSH.net buffer an - Simon, 2009-04-23, 14:26
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:36
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 16:48
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 17:11
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 17:18
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 18:48
- Re: Missing wait for response in SSH.net buffer an - Simon, 2009-04-24, 10:40
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 18:48
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 17:18
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 17:11
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 16:48
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:36
- Re: Missing wait for response in SSH.net buffer an - Simon, 2009-04-23, 14:26
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:16