jamfHelper Script works locally, breaks when run by policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 09-28-2012 05:40 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 10-01-2012 05:43 AM
I'm having the same problem on 8.6 with my JH scripts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 11-01-2012 08:44 AM
Was there ever a resolution to this problem. I am experiencing it as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 11-01-2012 08:44 AM
Was there ever a resolution to this problem. I am experiencing it as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 11-01-2012 10:11 AM
Add the following to the line where you call jamf helper
-startlaunchd
