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

Matt Oclassen moclassen at salesforce.com
Thu May 7 11:32:03 PDT 2009


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/55213653/attachment.html 


More information about the Casper mailing list