Skip to main content
Question

Scripts wont run sequential policies

  • December 3, 2021
  • 1 reply
  • 1 view

Forum|alt.badge.img+1

We have been trying to run a script that calls multiple policies one after another, but we're running into an issue of the script ending after running the first policy. I've made an example script that looks like this:

#!/bin/bash

jamf policy -event policy1

jamf policy -event policy2

exit 0

Policy 1 just echos "1" and Policy 2 echos "2". However the logs for the script look like this:

We've tried this with multiple different operating systems, including Monterey, Big Sur, and Catalina. Every OS has the same result. Does anyone know what may be going on?

1 reply

Forum|alt.badge.img+8
  • New Contributor
  • 38 replies
  • December 7, 2021

Scoping and frequency for policy2 is all correct I assume?  


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings