Mac app to read system log file
Phil Davis
revdev at pdslabs.net
Wed Nov 24 16:44:49 EST 2010
on mouseUp
answer file "???"
if it = empty then exit to top
put "cat" && quote & it & quote into tCommand
open elevated process tCommand for read
if the result <> empty then exit to top -- user canceled
read from process tCommand until EOF
put it into fld 1
close process tCommand
end mouseUp
Happy Thanksgiving!
Phil
On 11/24/10 12:04 PM, Bill Vlahos wrote:
> I have a Mac application to read log files that need administrative permission (sudo) to read. How can I prompt for this?
>
> Bill Vlahos
> _________________
> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
More information about the use-livecode
mailing list