home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / NazCron_v1.0 / CRONTAB < prev    next >
Text File  |  1989-08-06  |  2KB  |  65 lines

  1. ;
  2. ; This is a sample CRONTAB file, the event file used by NazCron.  You
  3. ;   will find that it will serve no function other than to show you how
  4. ;   to construct a CRONTAB file.
  5. ;
  6.  
  7. ;
  8. ; You can include comments in a CRONTAB file by typing a semi-colon in
  9. ;   column one of the line you wish to be interpreted as a comment.
  10. ;   You can also leave blank lines to make the file easier to read.
  11. ;
  12.  
  13. ;
  14. ; NazCron events are in the format:
  15. ;
  16. ;   [eventname] min hour day month weekday command
  17. ;
  18. ;   [eventname] is not required, but if present must begin with an
  19. ;               alphabetic character.
  20. ;   min,hour,day, month and weekday must be numeric or contain asterisks.
  21. ;   command must be a CLI command, or the CLI execution format of any
  22. ;               program.  All necessary parameters must be provided.
  23. ;
  24.  
  25. ;
  26. ; Next is the simple form of a NazCron event.
  27.  
  28. * * * * * Date >ram:cron.date1
  29.  
  30. ; With asterisks in each of the time positions, this command will be
  31. ;   executed every minute as long as NazCron is active.
  32.  
  33.  
  34. ;
  35. ; This command will be executed every hour on the hour:
  36. 0 * * * * Date >ram:cron.date2
  37.  
  38. ;
  39. ; This will be executed every hour on the hour and at 10 and 20 minutes
  40. ;   after the hour as well as every minute from 30 to 59:
  41. 0,10,20,30-59 * * * * Date >ram:cron.date3
  42.  
  43. ;
  44. ; This is a named event; it can be accessed from ARexx.  This is other-
  45. ;   wise the essentially same as the first example above.
  46. UselessEvent * * * * * Date >ram:cron.date4
  47.  
  48. ;
  49. ; Examine this:
  50. 0 0 13 10 5 Date >ram:cron.date5
  51.  
  52. ; It will be executed at midnight on October 13th ONLY in those years
  53. ;   when this is a Friday the 13th.
  54. ;
  55.  
  56. ;
  57. ; And now for an error:
  58. 0 * 30 2 * Date >ram:cron.date6
  59.  
  60. ; Since this is requesting execution on February 30th, it will never be
  61. ;   executed.  There is no reasonableness test done on the time values
  62. ;   you code, you have to be careful about stuff like this.
  63.  
  64. ; Good Luck
  65.