My requirements were to log any writes or deletes, showing both the old value and the new value to a log file in ~/Library/Logs/ where it is accessible to Console. (I use logger too but those messages get lost in the noise and are aged off). I wanted to leave any other defaults command (read, find, etc.) alone.
My first try was to write a function in my .bash_profile, which is loaded at every login and overrode the executable. That seemed fine until I realized that when using sudo defaults, it wasn't working. This is because sudo simply executes a command as different user without logging in and g ...
Source: http://feeds.macosxhints.com/click.phdo?i=5bdd2da680b5e4a72e71cdf4ad437aba
new mac news apple online store apple stocks news apple imac news
No comments:
Post a Comment