Chapter 3. Running commands unattended

When you are at the terminal or console, you do not want to run jobs that tie up your screen; you want to be getting on with other important tasks like reading your e-mail. It also makes sense to run jobs that are process or disk-intensive during off-peak hours. To enable you to run these types of tasks in the background, i.e. not on your terminal screen, there are certain commands and tools at your disposal.

In this chapter we will cover:

  • setting up and submitting jobs using your own crontab file;

  • submitting jobs using at;

  • running jobs in the background; and

  • running jobs using nohup.

Technical terms

Cron The system scheduler. Use this for jobs that are frequently run during off-peak hours and/or during different ...

Get Linux and Unix Shell Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.