home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / apps / 20680 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.1 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!cs.utexas.edu!geraldo.cc.utexas.edu!gargravarr.cc.utexas.edu!chrisj
  2. From: Chris Johnson <chrisj@emx.cc.utexas.edu>
  3. Newsgroups: comp.sys.mac.apps
  4. Subject: Re: Multiple Alarm Clock sought -- try "cron"
  5. Date: 27 Jan 1993 17:29:44 GMT
  6. Organization: University of Texas at Austin Computation Center
  7. Lines: 58
  8. Distribution: world
  9. Message-ID: <1k6gq8INNhjf@geraldo.cc.utexas.edu>
  10. References: <9301261626.AA13854@TIS.COM>
  11. NNTP-Posting-Host: gargravarr.cc.utexas.edu
  12. X-UserAgent: Nuntius v1.1.1d17
  13. X-XXMessage-ID: <A78C1B4A2501BE1F@gargravarr.cc.utexas.edu>
  14. X-XXDate: Wed, 27 Jan 93 16:58:18 GMT
  15.  
  16. In article <9301261626.AA13854@TIS.COM> Theodore Lee, tmplee@TIS.COM writes:
  17. >I am looking for an alarm-clock program that allows one to set simultaneous
  18. >alarms for several different times during the day, with a (possibly)
  19. >different sound associated with each. [....]
  20.  
  21. Shameless plug follows...
  22.  
  23. You could use a nifty little program of mine called "cron" (if you're using
  24. System 7, anyway). It's a generic scheduler for the Mac based directly on 
  25. the UNIX daemon by the same name.
  26.  
  27. If you wanted, for instance, an hourly chime to be played in the background
  28. every hour between 9:00 AM and 5:00 PM, Monday through Friday, all you'd have 
  29. to do is provide a sound file containing the chime sound you like, and place 
  30. the following line in cron's crontab file.
  31.  
  32.     0 9-17 * * 1-5 nobody -b sound "Hourly Chime"
  33.  
  34. If you want visible reminders to appear on your screen at certain times, 
  35. cron's "echo" command (written by Mike Pearce) will take care of that.
  36. Around our office, we find lines like the following very handy:
  37.  
  38.     0 17 * * 5 nobody -b echo -t 120 "Get out of the office! Drink some \
  39.     beers. Have a nice weekend."
  40.     
  41. This displays an alert which makes sure we don't forget it's quitting 
  42. time on Friday afternoon. (Otherwise, we might work straight through the 
  43. weekend and not even notice. :-)
  44.  
  45. The echo command is even smart enough to dismiss it's own alerts after
  46. a certain amount of time (120 seconds in the example above) so that it
  47. doesn't lock up the foreground application all weekend if you happen
  48. to leave without acknowledging the alert. Lots of commercial reminder
  49. utilities aren't that smart.
  50.  
  51. But the above are just examples of what you can do with the "sound" and 
  52. "echo" commands. Other commands included with cron will do things like 
  53. synchronize your Mac's clock to an RFC 868 Time Protocol server, restart 
  54. your Mac and rebuild it's desktop, open/print files, run/quit programs, 
  55. etc. And anyone with some C and Mac programming experience can write new 
  56. commands easily. Source code is included.
  57.  
  58. The whole thing is free, and available for anonymous ftp from the 
  59. pub/gatekeeper directory of emx.cc.utexas.edu. If you find that you 
  60. like cron, let me know and I'll put you on the mailing list for update 
  61. notices.
  62.  
  63. Told you it was a shameless plug.  :-)
  64.  
  65. ----Chris
  66.  
  67. Chris Johnson
  68.  
  69. Internet:   chrisj@emx.cc.utexas.edu
  70. UUCP:       {husc6|uunet}!cs.utexas.edu!ut-emx!chrisj
  71. BITNET:     chrisj@utxvm.bitnet
  72. CompuServe: >INTERNET:chrisj@emx.cc.utexas.edu
  73. AppleLink:  chrisj@emx.cc.utexas.edu@internet#
  74.