fun with elevated processes

Phil Davis revdev at
Thu Oct 14 12:08:06 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

Phil Davis

PDS Labs
Professional Software Development

More information about the Use-livecode mailing list