fun with elevated processes

Phil Davis revdev at pdslabs.net
Thu Oct 14 11:08:06 CDT 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

Cool!
-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the use-livecode mailing list