In this chapter, we'll teach you the basics of scheduling and logging the results of your scripts. We'll begin by explaining how both at and cron can be used to schedule commands and scripts. In the second part of the chapter, we will describe how we can log the results of our scripts. We can use both the local mail functionality of Linux and redirection to achieve this purpose.
The following commands will be introduced in this chapter: at, wall, atq, atrm, sendmail, crontab, and alias.
The following topics will be covered in this chapter:
- Scheduling with at and cron
- Logging script results