home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / DESQVIEW / TECH / CRON12.ZIP / CRONTAB < prev    next >
Encoding:
Text File  |  1990-10-20  |  3.2 KB  |  73 lines

  1. # -------------------------------------------------------------
  2. # Sample CRONTAB to illustrate the use of CRON. Syntax of
  3. # CRONTAB lines is:
  4. #
  5. #   min hour day month day-of-week [!]command[;[!]command...]
  6. #
  7. # Lines starting with '#' and blank lines are ignored.
  8. #
  9. # In the first 5 fields, an asterisk ('*') means 'all' and over-
  10. # rides any other characters in the field.
  11. # Otherwise, both single values, lists and ranges may be given.
  12. # Limits:
  13. #    min    -- 0..59
  14. #    hour    -- 0..23
  15. #    day    -- 1..31 (subject to month variations)
  16. #    month    -- 1..12
  17. #    dow    -- 0..6, 0 = Sunday.
  18. # Fields can be separated by any number of tabs and spaces. Space
  19. # is not allowed within a field, except in the command field.
  20. # Maximum line length is 510 characters.
  21. #
  22. # For best results, set the TZ environment variable to something like
  23. #    TZ=CET-1CDT
  24. # meaning for example "Central European Time, -1 hour after (i.e. 1
  25. # hour before) GMT, daylight savings zone. This will ensure correct
  26. # operation even on the nights -- twice a year -- where the daylight
  27. # savings periods change. If TZ is not set, CRON believes in US
  28. # West Coast time, where Borland lives.
  29. #
  30. # The command section can consist of 1 or more commands, separated
  31. # by ';'. Thus no command can be given an argument containing a ';'.
  32. # Commands prefixed with '!' are executed by the SHELL, i.e.
  33. # by spawning an extra copy of COMMAND.COM. This allows the normal
  34. # DOS redirection facilities, i.e. <, >, >> and | to be used in
  35. # commands, but the return value of the command is lost. CRONLOG
  36. # will show a return code 0 if CRON was able to spawn COMMAND.COM,
  37. # even if COMMAND.COM was unable to spawn the command in its turn.
  38. # This happens because, as we all know, COMMAND.COM isn't the
  39. # brightest boy in the class.
  40. # I suspect that 4DOS or some other intelligent shell program can
  41. # handle this in a better way, although I have not tested this.
  42. #
  43. # All right, let's try a few entries.
  44. # --------------------------------------------------------------------
  45. # Print calendar as early as possible on each new year's eve.
  46. 1 0 1 1 * !calendar >LPT1
  47.  
  48. # --------------------------------------------------------------------
  49. # Call my daily BBS'es every night, monday to friday
  50. 45 3 * * 1-5 yam call daily
  51.  
  52. # --------------------------------------------------------------------
  53. # Call BIX once a week doint the standard things (each monday morning)
  54. 47 2 * * 1 yam call bix,grab,newf,logout,quit
  55.  
  56. # --------------------------------------------------------------------
  57. # Back up D: drive to the network server twice a month
  58. 38 2 1,15 * * !d:;!cd \;pkzip -a -ex -r -p n:\tron\save\ddrive
  59.  
  60. # --------------------------------------------------------------------
  61. # Back up project subdirectory every night (tuesday to saturday)
  62. 27 1 * * 2-6 !d:;!cd \project;pkzip -a -ex -r -p n:\tron\save\project
  63.  
  64. # --------------------------------------------------------------------
  65. # Print an accounting report every monday and the 1. of every month.
  66. 54 5 1 * 1 prtacct
  67.  
  68. # --------------------------------------------------------------------
  69. # Process telecommunications logs quarterly, send to network laser
  70. 37 4 1 1,4,7,10 * !f:;!cd \yam\logfiles;!yamlogs -a >rpt;nprint Q=LASER rpt
  71.  
  72. # End of sample crontab
  73.