Hi,
I'd appreciate a little help with jamfHelper, as there doesn't seem to be much documentation on it beyond the -help output, which is a bit terse on some of the options, namely -startlaunchd and -kill. Can someone explain how they are used/what they are for? Running jamfHelper -kill in my terminal, for example, just causes the terminal to hang...
Do these work only as part of a script executed by a policy? And if so, what is the proper usage?
Is it
jamfHelper -other_options foo -startlaunchd
and then a separate
jamfHelper -kill
to end it? Can I send jamfHelper to the background with & and still kill it this way, or should I try to kill it via PID?
My idea is to use this with Self Service so that if a user chooses a policy that should only be run when certain apps are closed, I can present them with a buttonless jamfHelper window that asks them to quit the apps in question. Currently my script sends the jamfHelper process to the background (with &) and then runs a loop checking ps output to see when the app in question is no longer running. At that point, the script kills the jamfHelper dialog and exits (and the rest of the installation policy should proceed).
My initial testing (not using -startlaunchd, and killing by PID) sadly failed. The script worked great when run on my computer manually, but when run in a policy, the jamfHelper window remained open indefinitely and the policy went ahead and executed as if ignoring the script. I was not using the -kill option as I was unsure how it was meant to be used (and as mentioned, running it in my terminal simply caused a terminal hang). Hmm...
I will continue to play around with it, but if someone could explain the proper usage, that would be super helpful.
-r
