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