Main index

Introducing UNIX and Linux


Processes and devices

Overview
Processes
      Process status
      Foreground and background
      Process control
      Signals
Environment
      Environment variables
      Global and local variables
      Executable scripts
Program control
      Job control
      Command history list
      Running a job at a specific time
      Running programs periodically
      Big programs
      Timing a program
      Running programs in order
Quotes and escapes
Devices
Backquotes
Summary
Exercises

Answer to chapter 6 question 1

Use crontab -e to edit the crontab file, adding the following line to that file:

0 8 * * 1 echo "Good Morning"

This instructs crontab to run

echo "Good Morning"

(whose output will be mailed to you) at 0 minutes past 8 o'clock every first day (i.e. Monday) of every week regardless of the month or the date.


Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck