Skip to main content
Solved

How to quit browsers so Java and flash can update?

  • February 20, 2013
  • 4 replies
  • 32 views

Forum|alt.badge.img+8

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

Best answer by jhalvorson

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

4 replies

Forum|alt.badge.img+26
  • Honored Contributor
  • Answer
  • February 20, 2013

Forum|alt.badge.img+5
  • Contributor
  • February 20, 2013

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.


Forum|alt.badge.img+7
  • Contributor
  • February 20, 2013

or the kill commands
killall Safari
killall firefox

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


Forum|alt.badge.img+8
  • Author
  • Contributor
  • February 20, 2013

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

Steve