home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11370 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!sgi!odin!sam.wpd.sgi.com!pj
  3. From: pj@sam.wpd.sgi.com (Paul Jackson)
  4. Subject: Re: correction re: cron problem
  5. Message-ID: <1992Jul25.014756.21836@odin.corp.sgi.com>
  6. Sender: news@odin.corp.sgi.com (Net News)
  7. Nntp-Posting-Host: sam.wpd.sgi.com
  8. Reply-To: pj@sgi.com
  9. Organization: Silicon Graphics, Research & Development
  10. References:  <31518@adm.brl.mil>
  11. Date: Sat, 25 Jul 1992 01:47:56 GMT
  12. Lines: 30
  13.  
  14. In article <31518@adm.brl.mil>, johnson@euler.jsc.nasa.gov (Stan Johnson) writes:
  15. |>
  16. |> #min    hour    daymo    month    daywk    cmd
  17. |> 32    4    22-28    *    0    /etc/my_program
  18. |> 
  19. |> Cron actually ran my sample program only yesterday (22nd) and today, as
  20. |> if I had entered "*" for daywk.
  21.  
  22. Using both daymo and daywk to specify the day(s) to run a command
  23. does not result in only running the command on the days meeting
  24. both conditions, but on days meeting either condition.  These two
  25. fields are combined as if with an OR, not an AND, operator.
  26.  
  27. To quote the man page:
  28.  
  29.      Note that the specification of days may be made by two
  30.      fields (day of the month and day of the week).  If both are
  31.      specified as a list of elements, both are adhered to.  For
  32.      example, 0 0 1,15 * 1 would run a command on the first and
  33.      fifteenth of each month, as well as on every Monday.  To
  34.      specify days by only one field, the other field should be
  35.      set to * (for example, 0 0 * * 1 would run a command only on
  36.      Mondays).
  37.  
  38.  
  39. -- 
  40.  
  41.                 I won't rest till it's the best ...
  42.                 Software Production Engineer
  43.                 Paul Jackson (pj@sgi.com), x1373
  44.