O'Reilly logo

Troubleshooting Ubuntu Server by Skanda Bhargav

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scheduling jobs with cron

The cron system has brought relief to system administrators, without which they had to wake up and run jobs at specified times in order to run a server smoothly. For example, if there is a requirement to clear the /tmp directory every Sunday midnight before the business begins next day (Monday morning), it makes absolutely no sense for an administrator to be awake and carry out the job manually at midnight. Thanks to cron, jobs can now be scheduled, that is, they can start at scheduled times. cron and at are daemons that help achieve this. Linux's cron is a little different compared to that of Unix, as cron in Unix wakes only at the time when it has to launch a program.

The cron and at daemons should be installed by default ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required