[Casper] Grep(?) or other method for a logged on user.

Dorey, Dustin Dustin.Dorey at district196.org
Thu May 7 11:43:09 PDT 2009


What exactly are you trying to run?

Would it work to run the policy on the login trigger and specify once
per user for each machine in the scope?

That way it would run when the login trigger was hit for each user on
the machine.

Just a though, not sure exactly what your end goal is though so it may
not be of any help.

 

-Dusty-

 

Dustin  Dorey

Technology Support Cluster Specialist

Independant School District 196

Rosemount-Apple Valley-Eagan Public Schools

dustin.dorey at district196.org

651|423|7971

 

 

 

 

From: casper-bounces at list.jamfsoftware.com
[mailto:casper-bounces at list.jamfsoftware.com] On Behalf Of Matt Oclassen
Sent: Thursday, May 07, 2009 1:32 PM
To: casper at list.jamfsoftware.com
Subject: [Casper] Grep(?) or other method for a logged on user.

 

Hello,

I was looking for a command that I could use to verify that a user is
logged onto their machine before a policy is run (as opposed to a
machine being on, but sitting at the login screen)

I want to make sure that they are logged in so they are sure to get the
messaging that this policy has run.

I am imagining something like the following:

If any user is logged in (except for our 2 admin accounts whose name I
can specify)

Execute  jamf policy -trigger "custom trigger"

Else quit.

Does anyone have an idea on the scripting for this?

Thanks very much,
Matt Oclassen

Desktop Systems Specialist
salesforce.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090507/859cc70a/attachment.html 


More information about the Casper mailing list