Skip to main content
added 174 characters in body
Source Link
Joshua Fox
  • 1.3k
  • 2
  • 15
  • 21

I have a script (which backs up, using rclone) that I can run from the Terminal or Automator after chmod a+x, with no permissions problems.

However, when this script is run in cron (or launchd), stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted."

I am more familiar with Ubuntu, where this approach works fine.

What do I need to do here?

Edit: The above question remains relevant, but note that launchd is the favored cron replacement for Mac, while Automator is available for application-level scheduling.

I have a script (which backs up, using rclone) that I can run from the Terminal after chmod a+x, with no permissions problems.

However, when this script is run in cron, stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted."

I am more familiar with Ubuntu, where this approach works fine.

What do I need to do here?

I have a script (which backs up, using rclone) that I can run from the Terminal or Automator after chmod a+x, with no permissions problems.

However, when this script is run in cron (or launchd), stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted."

I am more familiar with Ubuntu, where this approach works fine.

What do I need to do here?

Edit: The above question remains relevant, but note that launchd is the favored cron replacement for Mac, while Automator is available for application-level scheduling.

edited tags
Link
bmike
  • 241.3k
  • 80
  • 433
  • 958
added 33 characters in body
Source Link
Joshua Fox
  • 1.3k
  • 2
  • 15
  • 21

I have a script (which backs up, using rclone) that I can run from the Terminal after chmod a+x, with no permissions problems.

However, when this script is run in cron, stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted."

I am more familiar with Ubuntu, where this approach works fine.

What do I need to do here?

I have a script that I can run from the Terminal after chmod a+x, with no permissions problems.

However, when this script is run in cron, stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted."

I am more familiar with Ubuntu, where this approach works fine.

What do I need to do here?

I have a script (which backs up, using rclone) that I can run from the Terminal after chmod a+x, with no permissions problems.

However, when this script is run in cron, stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted."

I am more familiar with Ubuntu, where this approach works fine.

What do I need to do here?

added 29 characters in body
Source Link
Joshua Fox
  • 1.3k
  • 2
  • 15
  • 21
Loading
Source Link
Joshua Fox
  • 1.3k
  • 2
  • 15
  • 21
Loading