Re: Login, su to root, execute command (General questions)
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();