fun with elevated processes

Ken Ray kray at sonsothunder.com
Thu Oct 14 12:34:46 EDT 2010


>   I can now easily restart Apache from a LC handler:
> 
> on mouseUp
>     constant kRestartApache = "apachectl -k graceful"
>     open elevated process kRestartApache for neither
>     if the result <> empty then
>        answer "Could not restart server."
>        close process kRestartApache
>     end if
>     -- process will normally close itself when finished
> end mouseUp

That's cool, Phil! What did you have to do before 'open elevated process'?
Does this take the place of trying to pass an admin password on the command
line?

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the Use-livecode mailing list