Re: Login, su to root, execute command (General questions)

by Kaliorin, (7253 days ago) @ Jasmine

hi, i solve the problem by using System.Threading.


I just put some sleep ... and it works well.

Thread.Sleep(500);
sData += this.ssh1.Execute( passwd GuyName , regex:[A-z]*[.,!?:...]* );
Thread.Sleep(500);
sData += ssh1.Receive();

locked

Complete thread: