On Windows, this is a plain easy task (Here for me, I was using a external app for that), but it seen it can't been done in Linux, because restrictions: You are not in root in Ubuntu (but did have enabled it), and you need to insert the password manual and I cant auto send the password in some way.
Here is what I trying and it wont work (but it find the command):
Since I need it, because Im are converting a full screen jukebox application (running in a arcade or jukebox cabinet), and not a game.
Here is what I trying and it wont work (but it find the command):
Local proc3:TProcess=TProcess.Create("sudo shutdown -h now",1) If proc=Null Print "Command Not Found" Else Print "Command Found" EndIf
Since I need it, because Im are converting a full screen jukebox application (running in a arcade or jukebox cabinet), and not a game.