Here's what I am trying to do.
To stay compliant, we have to make sure our Mac's are staying up-to-date. I have EA that checks if there are available updates and places them in a Smart Group if there are. Then I am going to run a script that prompts the user there are updates available. They have 2 options, run updates, or decline. Each time they decline, a read receipt is created and the script uses those receipts to determine how to proceed the next time the script is ran. We have a lot of users that travel so we will allow them to decline 3 times and the 4th prompt will force the update.
My issue is that I need these prompts to happen several times with 10 days. If I could run the policy every 3 days, that would be great, but JAMF doesn't give us that capability.
So I thought, ok, we can make the script smarter and apply logic based off when the read receipt was modified using something like
if [[ $(find "$read" -mtime +2 -print) ]]; then either continue with the script or exit. But -mtime doesn't seem to be accurate. I have a read receipt created on my Mac from Jan 4th and if I run that command it won't find it and today is the 7th. If I change it to +1 it does find it. So, I'm not sure what the deal is.
Any help on the best way to accomplish this would be great!