Skip to main content

Hi,



We put Java updates, flash updates in Self Service so people can update that way. I have in the description the instructions to quit your browsers before running this update. However most people either don't read it, or they just close the browser window thinking they have quit the program. Is there a way to have the policy quit the browsers (or any app i want to update) so the update will run successfully? I am still new at this but learning...



Thanks,



Steve

I believe the answer can be found here:
https://jamfnation.jamfsoftware.com/discussion.html?id=4091


osascript -e 'tell application "Safari" to quit'
osascript -e 'tell application "Firefox" to quit'



etc etc.



You can put a script (with these commands) in your java update policy that runs first, then installs java --the suggestions on that link above are a little more in-depth and better written.


or the kill commands
killall Safari
killall firefox



less chance of the browser refusing the quit and guarantees they quit.


Awesome, thanks guys! I now have a few ways of doing this.....



Steve