There will be times when you will want to schedule some task to automatically occur in the future. There are 2 possible scenrario.
AnnouncementI have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!
Scenario 1 – In the first scenario you might want to run tasks periodically, e.g. once a month. In which case the best way to achieve is by setting up a cron job.
Scenario 2 – The second scenario is that you want to schedule a one-off task to take place at some point in the future, e.g. perform a patch installation at 2am on early Sunday morning. The best solution to achieve this is by using the “at” utility.
In the next few articles we will cover cron (in its various forms) as well as the “at” utility.