I have created a very simple script that tells an application to generate a text log. A policy is in place to run this script as a part of the ongoing checkin.
#!/bin/sh
sudo promiseutil -C phydrv > /PegasusLog/log.txt
If I run sudo jamf policy in terminal it will successfully create the log.txt file with the appropriate output. Once the computer checks back in to the JSS though and tries to execute the script it will exit with exit code 5. It also overwrites the log.txt file with a blank log.txt file. What am I missing here?
