Hi Guys,
though I would share
dim myshell as new Shell
dim s as string
if TargetLinux then
mySHELL.mode = 2
Label1.text = “sudo reboot”
mySHELL.Execute “sudo reboot”
while InStr ( s, "pass")=0
delay.ShowModal
s= myshell.Result
Label1.text = s
wend
delay.ShowModal
mySHELL.WriteLine ROOTpassword
MsgBox myshell.Result
myshell.Close
end if
delay is a window with a timer in it set for 1 second (1000 milliseconds), when it fires it closes itself ( delay.close )
ROOTpassword is already defined and is the password of the logged in user.
I couldn’t get it to with with root but I stopped once this worked.
If you can improved please feel free to share
PS - tried app.pausecurrentthread(1000) but it doesn’t work.
Thanks
Damon