5

I put my shell script inside /etc/cron.daily

I was hoping everything that in that folder would be run daily but my script is not being ran.

physiii
  • 211

1 Answers1

10

Keep in mind that scripts installed in /etc/cron.{hourly|daily|weekly|monthly} must be executable, for run-parts to process them.


Update: Indeed, defining the shebang is also mandatory in cron scripts for run-parts to process them. And as a general rule: you should always set one.

SYN
  • 2,961