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

New Post: Unreliable Expect

$
0
0
Dear Developers,

I have noticed that expect does not always works, sometimes it just skips expected text and execution blocks

I am trying to do my own expect handler in Shell_DataReceived event
in DotNet v2, please look at the source code at:
http://pastebin.com/vH9uCWNi

I am trying to use async constructs like BeginExpect

Please let me know, how can I forcibly end such BeginExpect after it is being waited by
AR.AsyncWaitHandle.WaitOne()

see:
AR = Shell.BeginExpect(New Renci.SshNet.ExpectAction(StopOnText, AddressOf F1))

Thanks for your help

Viewing all articles
Browse latest Browse all 1729

Trending Articles