Crontab commands are not permitted when sandbox enabled.

For scheduling purpose our Mac application using crontab terminal commands, which are working fine when sandbox is not enabled. For submitting the application to Appstore, we enabled the sandbox option and after that Crontab commands are not working. Getting the error messages as,

/bin/sh: /usr/bin/crontab: Operation not permitted.

Could you please guide us how to use the crontab commands when sandbox option enabled.

There may or may not be a path forward here, depending on what you’re doing in your cron jobs:

  • Do you cron jobs need to run as a user other than the user who ran your app?

  • Do you cron jobs need to run when that user is logged out?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Our application trying to run an script file, which is located at /Library/Scripts folder.

sample : 50 15 27 05 * /Library/Scripts/scheduler_run

General crontab method like, "crontab -l" is also not working when sandbox enabled.

In this application cronjob need to run for all users.

Crontab commands are not permitted when sandbox enabled.
 
 
Q