[Casper] User-based shell scripts after self-service installation
Jeremy Matthews
jeremymatthews at mac.com
Thu Aug 14 11:02:38 PDT 2008
Ah - you know what, I was focusing on using the tilde too much.
It makes total sense just to grep around or whoami and then execute
based on that.
Thanks,
j
On Aug 14, 2008, at 1:57 PM, Miles Leacy IV wrote:
> 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.
>
More information about the Casper
mailing list