home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man8 / cron.8 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.7 KB  |  75 lines

  1. .th CRON VIII 10/25/74
  2. .sh NAME
  3. cron \*- clock daemon
  4. .sh SYNOPSIS
  5. .bd /etc/cron
  6. .sh DESCRIPTION
  7. .it Cron
  8. executes commands at specified dates and times
  9. according to the instructions in the file
  10. /usr/lib/crontab.
  11. Since
  12. .it cron
  13. never exits,
  14. it should only be executed once.
  15. This is best done by running
  16. .it cron
  17. from the initialization
  18. process through the file
  19. /etc/rc;
  20. see
  21. .it init
  22. (VIII).
  23. .s2
  24. Crontab
  25. consists of lines of six fields each.
  26. The fields are separated by spaces or tabs.
  27. The first five are integer patterns to
  28. specify the
  29. minute (0-59),
  30. hour (0-23),
  31. day of the month (1-31),
  32. month of the year (1-12),
  33. and day of the week (1-7 with 1=monday).
  34. Each of these patterns may
  35. contain a number in the range above;
  36. two numbers separated by
  37. a minus
  38. meaning a range inclusive;
  39. a list of numbers separated by
  40. commas meaning any of the numbers;
  41. or an asterisk meaning all legal values.
  42. The sixth field is a string
  43. that is executed by the Shell at the
  44. specified times.
  45. A percent character
  46. in this field is translated to a new-line
  47. character.
  48. Only the first line (up to a % or end of line)
  49. of the command field is executed by the Shell.
  50. The other lines are made available to the
  51. command as standard input.
  52. .s2
  53. Crontab is examined by
  54. .it cron
  55. every hour.
  56. Thus it could take up to an hour
  57. for entries to become effective.
  58. If it receives
  59. a hangup signal, however, the table is examined immediately;
  60. so `kill \-1 ...' can be used.
  61. .sh FILES
  62. /usr/lib/crontab
  63. .sh "SEE ALSO"
  64. init(VIII), sh(I), kill (I)
  65. .sh DIAGNOSTICS
  66. None \- illegal lines in
  67. crontab are ignored.
  68. .sh BUGS
  69. A more efficient algorithm could be used.
  70. The overhead in running
  71. .it cron
  72. is about one percent of the
  73. machine,
  74. exclusive of any commands executed.
  75.