Permission denied running two scripts to get logs

I am trying to run two scripts, a start and a stop to capture logs from a DAP Music device connected to my iMac but I keep getting this permission block when i run either :



The content of the first script seems to be :

mydir=$(cd $(dirname $BASH_SOURCE) && pwd)

echo $mydir

cd $mydir

./adb devices

./adb root

./adb shell "setprop vendor.aplogd 1"

./adb shell "getprop veddor.aplog"


The permissions on the file show Read & Write but I'm lost as to why they won't run. I'm pretty vanilla when looking at the Terminal.


Any help appreciated


Posted on Jul 24, 2023 12:52 PM

Reply

Similar questions

2 replies

Jul 25, 2023 11:11 AM in response to Airsculpture

Hey there Airsculpture,


Thanks so much for using Apple Support Communities.


We want to help figure out why this might be happening and share some useful information that should hopefully get this resolved for you. While we can't necessarily help with writing or running specific scripts, we do have some resource on troubleshooting permissions issues in macOS. Those articles can be found below and we think they will be helpful in this case:



We hope that this information is helpful.


​Have a great day!


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Permission denied running two scripts to get logs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.