Running Shell Commands on Mac OsX

Does anyone know how to run shell commands from Xojo which would normally require SUDO in the terminal window. For instance I am trying to execute:

[code] Dim sh as new Shell

sh.Execute “sudo apachectl start”[/code]

but I am getting the result:

sudo: no tty present and no askpass program specified

Thanks

Mike

Dim sh as new Shell sh.Execute ”osascript -e ‘do shell script “”sudo apachectl start”” with administrator privileges'”