How to auto shutdown under BlitzMax app?

Miscellaneous Forums/Linux Discussion/How to auto shutdown under BlitzMax app?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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):

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.