I have seen here various issues about the crontab
'Operation not permitted
' issue for Mac OS, but I seem to have a more complex situation on my hands.
I have a bash file on the desktop, which I wanna execute in crontab. Configurations I added:
- Created the file
untitled.sh
on my Desktop (which has#!/bin/bash
in the beginning of the file). - Ran 'chmod +x untitled.sh'.
- Using
crontab -e
, added the cron0 13 * * * /Users/michael/Desktop/untitled.sh
. - In Security & Privacy > Privacy, gave Full Disk Permissions to
iTerm
,Terminal
,bash
&cron
.
but I still get the error:
/bin/bash: /Users/michael/Desktop/untitled.sh: Operation not permitted
What can be done?