So, I am trying to run some automation with a bit of end user interaction. If I use the jamf displayMessage binary to display a message it will return the output back into terminal, but I can't seem to quite make the connection.
Basically I want to run the command along with other commands and then the user clicks on the OK button it will trigger the last or final command of the policy.
Here is what I got, proof of concept wise, but it is very very broken. Anyone else got any ideas?
#!/bin/bash
#test jamf display message command
selection=
/usr/sbin/jamf displayMessage -message "testing"
until [ "$selection" = "button returned: OK" ] ; do
case $selection in
"button returned:OK" ) /bin/echo "the test is over" ;; esac done
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351
chown -R us /.base
