Hi
This shell example was found on RB Nug
function check_sudo_password(password as string) as boolean
dim sh as shell
sh=new shell
sh.execute “echo ‘”+password+”‘ | sudo echo ‘working’”
return instr(sh.result,”working”)<>0
end function
Test it to know if it works
Cya ![]()
0 Comments
Hi
Dim sh As New Shell
sh.Mode = 0
sh.Execute “env | grep SHELL”
App.DoEvents ‘ tee hee hee
StaticText1.Text = sh.Result
From Tim Jones