Posted on 08-09-2023 06:40 AM
How can I get the list of apps installed with Brew? I could not pull this list with Jamf Pro via script. Because the brew list command should work in the corresponding profile. However, I guess Jamf Pro doesn't run it in the relevant profile. Is there a practical method? I used the following commands;
brew list --cask
brew list
Solved! Go to Solution.
Posted on 08-10-2023 05:35 AM
@husnudagidir If you need to run a command as the logged in user instead of as the root context when running via a Jamf Pro policy see the following article which defines a runAsUser function to make that simple: https://scriptingosx.com/2020/08/running-a-command-as-another-user/
Posted on 08-10-2023 05:35 AM
@husnudagidir If you need to run a command as the logged in user instead of as the root context when running via a Jamf Pro policy see the following article which defines a runAsUser function to make that simple: https://scriptingosx.com/2020/08/running-a-command-as-another-user/
Posted on 08-10-2023 05:37 AM
thank you
Posted on 08-16-2023 11:35 PM
Thank you, I appreciate you for the link.