[Gambas-user] No Graphical sudo program found

Manu mtitouinfo at yahoo.fr
Fri Jan 14 16:21:01 CET 2022


hello

via command-line application,

  belote:
  Print "sudo fdisk -l ; your password ??"
  Input motdepasse
  Shell Subst("echo &1 | sudo -S fdisk -l &>/dev/stdout", motdepasse) To 
sortie
  If sortie Match "incorrect" Then
       Print "ko", ess
       If ess = 3 Then
       Print "3 attempts maxi. end"
       Goto fin
       End If
       Inc ess
       Goto belote

   Else
     Print sortie
  Endif

(modify according to shell language)


More information about the User mailing list