[Casper] Using $1, $2, $3 etc...
Miles Leacy
miles.leacy at themacadmin.com
Tue Mar 10 07:20:04 PDT 2009
The Casper Suite Documentation doesn't explicitly state this, but it implies
the values of these variables on page 170.
$1 = Mount point of the target drive. This is / if you're booted to the
target or /Volumes/targetDrive if you're not booted to it.
$2 = the computer name
$3 = the current user's shortname. Note that this is not a loop, and $3
doesn't mean "do this to all users". If you use $3 in a script that is used
in a login or logout policy, or a Casper Remote action that is run while a
client is logged in, that $3 will equal the current user's username. If no
one is logged in, I believe $3 will be empty.
----------
Miles A. Leacy IV
Certified System Administrator
Certified Trainer
Certified Casper Administrator
----------
voice: 1-347-277-7321
miles.leacy at themacadmin.com
www.themacadmin.com
2009/3/10 Dorey, Dustin <Dustin.Dorey at district196.org>
> Does anyone know if there is documentation anywhere on Using $1, $2, $3
> in scripts to cycle through the users etc…. I know this has been discussed
> a bit before but in digging around the KB and the resource kit I can find it
> in use but would like to review an documentation available. I’ve got to
> make some scripts to deal with some imaging issues we had previously and
> being able to cycle through all the existing users would be of great help.
>
> Thanks folks, I’m sure I’m missing something easy. Still adjusting to
> this daylight savings time thing can’t get the brain working right this
> week.
>
> -Dusty-
>
>
>
> *Dustin Dorey*
>
> *Technology Support Cluster Specialist*
>
> *ISD 196 Apple Valley, Eagan, Rosemount*
>
> *dustin.dorey at district196.org*
>
> *952|423|7971*
>
>
>
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090310/665839bd/attachment.htm
More information about the Casper
mailing list