That’s because executeCommandLine
has changed in OH3. So instead of:
executeCommandLine("sudo@@poweroff")
It’s now:
executeCommandLine("sudo", "poweroff")
Every phrase is now put into quotations, and the @@ for spaces no longer works.
That’s because executeCommandLine
has changed in OH3. So instead of:
executeCommandLine("sudo@@poweroff")
It’s now:
executeCommandLine("sudo", "poweroff")
Every phrase is now put into quotations, and the @@ for spaces no longer works.