I use a Launch Agent to run a bash script in a standard user account on macOS High Sierra. The bash script performs a series of tasks, which also includes collecting whereami results. If the bash script is initiated by the Launch Agent all tasks in the bash script complete as expected except the collection of whereami results. If I manually run the bash script all tasks complete as expected. Anyone have any ideas why the Launch Agent cannot run whereami? The Launch Agent is in /Users/name/Library/LaunchAgents/. Whereami is in /usr/local/bin. The permissions of /usr/local/bin/whereami is 755.
Got it figured out. I think the Launch Agent was using the wrong version of python. I had to include the path to Python 3 in my script. My automated task is now working as expected.
I use a Launch Agent to run a bash script in a standard user account on macOS High Sierra. The bash script performs a series of tasks, which also includes collecting whereami results. If the bash script is initiated by the Launch Agent all tasks in the bash script complete as expected except the collection of whereami results. If I manually run the bash script all tasks complete as expected. Anyone have any ideas why the Launch Agent cannot run whereami? The Launch Agent is in /Users/name/Library/LaunchAgents/. Whereami is in /usr/local/bin. The permissions of /usr/local/bin/whereami is 755.