home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / admin / 4529 < prev    next >
Encoding:
Text File  |  1992-08-12  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!news.larc.nasa.gov!advise.larc.nasa.gov!zaphod
  3. From: zaphod@advise.larc.nasa.gov (Lyle D. Sanders)
  4. Subject: Re: Cron question: first monday in october (or any month)
  5. Message-ID: <BswJC0.Mp2@news.larc.nasa.gov>
  6. Sender: news@news.larc.nasa.gov (USENET Network News)
  7. Organization: NASA Langley Research Center, Hampton, VA  USA
  8. References: <lee.713038760@ceg.uiuc.edu> <21307@rpp386.lonestar.org> <168ndtINNmon@BIGBIRD.CF.CS.YALE.EDU>
  9. Date: Thu, 13 Aug 1992 03:07:12 GMT
  10. Lines: 35
  11.  
  12. anselmo-ed@cs.yale.edu (Ed Anselmo) writes:
  13. |> I don't know when or why they diverged, but BSD-ish crons "and" all
  14. |> the fields together, while SysV (and SunOS >= 4.0) cron does the
  15. |> funkiness described in earlier postings (run if either day-of-month or
  16. |> day-of-week is true).
  17. |> -- 
  18. |> Ed Anselmo   anselmo-ed@cs.yale.edu   {harvard,cmcl2}!yale!anselmo-ed
  19.  
  20. Thanks SUN!!!!
  21.  
  22. If I want to OR the day-of-month and day-of-week fields, I could make two
  23. cron entries.  (If cron uses the "AND" method.)
  24.  
  25. But with the "OR" method, I have to use a bass-ackwords wayof getting the
  26. ANDing of the two fields.
  27.  
  28. It seems stupid to OR two of the fields then AND that result with the
  29. rest of the fields.  Why not just AND all of the fields???  Can someone
  30. out there in sun.com land answer that one?
  31.  
  32. I suspect that there are more people who have meetings on the first
  33. Wednesday of the month than there are people who have meetings on the
  34. first 7 days of the month AND every Wednesday.
  35.  
  36.  
  37. Lyle D. Sanders                      zaphod@answers.larc.nasa.gov
  38. UNISYS Government Systems Inc.       (804) 864-7470
  39. Mail Stop 157-B                      (804) 864-7604 FAX
  40. NASA Langley Research Center
  41. Hampton, VA 23665
  42.  
  43. ------------------------------------------------------------------------------
  44. "I do not feel obliged to believe that the same God who endowed us with sense,
  45. reason and intellect has intended us to forgo their use."   -- Galileo Galilei
  46. ------------------------------------------------------------------------------
  47.