The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Script to remove automatically delete apps owned by mobile users (http://hintsforums.macworld.com/showthread.php?t=111470)

kimpton79 09-13-2010 08:35 AM

This script is going well but i have noticed one problem. I am running a launch daemon to run the script every hour but i can see through some logs that it is also searching through network volumes as well.

the name of local disks are all different and upper case. I have found scutil --get ComputerName outputs the computer name correctly in the correct upper case but i am unsure how to pass this on to the find command.

If anyone can help this would be great.

kimpton79 09-13-2010 09:51 AM

got it working
 
I found i have to use the -mount to search the local disk only as i have found that some machines are kernel panicking.

So the command is find -x / -mount -iname '*.app' -group 513
:D

tlarkin 09-13-2010 10:38 AM

I still don't see why you don't use local MCX?


All times are GMT -5. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.