Skip to main content
Question

jamfHelper Script works locally, breaks when run by policy

  • September 29, 2012
  • 4 replies
  • 13 views

Forum|alt.badge.img+1

When running this script locally or with a manual policy trigger, it works fine, waiting for the user to click the button before exiting.

When the script is run with Casper Remote or by policy using any trigger except for manual, it does not wait for the user to click the button before exiting.

What am I missing?

#!/bin/bash
# waitExample.sh

click_value=`/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType hud -timeout 3600 -description "Click the button." -icon /Library/Application Support/JAMF/bin/jamfHelper.app/Contents/Resources/Message.png -button1 'Click Me'`

if [ "$click_value" == "0" ]; then
    echo "User clicked button."
fi

exit 0

4 replies

ImAMacGuy
Forum|alt.badge.img+23
  • Esteemed Contributor
  • 1310 replies
  • October 1, 2012

I'm having the same problem on 8.6 with my JH scripts.


Forum|alt.badge.img+6
  • Contributor
  • 15 replies
  • November 1, 2012

Was there ever a resolution to this problem. I am experiencing it as well.


Forum|alt.badge.img+6
  • Contributor
  • 15 replies
  • November 1, 2012

Was there ever a resolution to this problem. I am experiencing it as well.


Forum|alt.badge.img+19
  • Valued Contributor
  • 184 replies
  • November 1, 2012

Add the following to the line where you call jamf helper

-startlaunchd