Re: Login, su to root, execute command - WeOnlyDo Discussion board

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

by Kaliorin, Monday, August 22, 2005, 16:07 (6823 days ago) @ wodSupport

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();


Complete thread: