[Casper] User-based shell scripts after self-service installation
Miles Leacy
miles.leacy at themacadmin.com
Thu Aug 14 11:02:06 PDT 2008
The script will do what you tell it to. If you tell it to operate in user
space, it will.
I typically use a "for" command when I need to apply the same command to
every item in a particular directory, such as /Users. For example:
for i in $( ls /Users ) ; do defaults write
/Users/$i/Library/Preferences/com.manufacturer.product key type value ; done
Pardon me if my syntax isn't perfect, I don't have my script library or a
Mac OS X box at hand at the moment, but this is the general idea. You can
grep out stuff you don't want, or use if then else statements to avoid
putting your files in places such as /Users/Shared.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20080814/f8bdcaf7/attachment.html
More information about the Casper
mailing list