/ tech-note

How to run a cron job in Ubuntu?

Simply put your executable script at /etc/cron.daily or /etc/cron.hourly or anything like that.

Example:

sudo ln -s my_script.sh /etc/cron.daily

NOTE: don't add .sh extension to your script as it makes your cron job invalid.