๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป tech-note

Your cron job is not running? Check out the followings!

Your cron scheduler should be working as long as you put your files to /etc/cron.hourly or something. If not, the problem might be found som

Your cron scheduler should be working as long as you put your files to /etc/cron.hourly or something. If not, the problem might be found somewhere like the following:

  • Is the permission correct? It should be 755 or something like that.

  • Does your filename use only upper and lower cases, hyphens, and underscores? The cron is pretty pedantic about

-->
  • Y Generation
1 min read
๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป tech-note

Don't append `.sh` extension to your cron script

Having created a .sh script you want to run periodically, and put it in /etc/cron.daily/, you still find it not working๐Ÿ˜ฐ? The potential pro

Having created a .sh script you want to run periodically, and put it in /etc/cron.daily/, you still find it not working๐Ÿ˜ฐ? The potential problem might come from the file extension.

You should NOT append the .sh extension๐Ÿ™…๐Ÿป So just remove it and test it again with run-parts --test /etc/cron.daily.

Or more correctly, your script name should

-->
  • Y Generation
1 min read