home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 391.lha / IsToday_v1.0 / ReadMe < prev    next >
Text File  |  1990-07-03  |  3KB  |  41 lines

  1. (* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2.  *                                                                     *
  3.  *  Public domain!  V1.0 by David Czaya                                *
  4.  *                         (PLink -Dave-)                              *
  5.  *                         (CIS   73445,407)                           *
  6.  *  27-June-1990           (GEnie DCzaya)                              *
  7.  *                                                                     *
  8.  *  Usage: IsToday [day]      where [day] is Sun, Monday, Tues...      *
  9.  *                                                                     *
  10.  *  IsToday compares [day] with the system clock's "Day of Week"       *
  11.  *  and sets the CLI return code as follows:                           *
  12.  *                                                                     *
  13.  *   no match - 0    (Ok)                                              *
  14.  *   match    - 5   (WARN)                                             *
  15.  *   error    - 20  (FAIL)                                             *
  16.  *                                                                     *
  17.  *  "IsToday" is meant to be used within a script. I wrote IsToday     *
  18.  *  because my job requires that every Monday morning I'm supposed     *
  19.  *  to mail out a certain check and for some reason, I'd constantly    *
  20.  *  forget to do it.  :-)                                              *
  21.  *                                                                     *
  22.  *  Now, my Startup-Sequence says:                                     *
  23.  *                                                                     *
  24.  *  IsToday Monday                                                     *
  25.  *  IF WARN                                                            *
  26.  *      echo "It's Monday. Go mail the check."                         *
  27.  *  ENDIF                                                              *
  28.  *                                                                     *
  29.  *  Now, when I boot up Monday morning, I get the reminder. Simple.    *
  30.  *  Easy. Problem solved! I'm sure you can find a use for it. I        * 
  31.  *  realize there are other CHRON-like programs that do this and       *
  32.  *  much, much more, but I prefer the simplicity of this.              *
  33.  *                                                                     *
  34.  *  Source is included so you can modify or expand this program in     *
  35.  *  any way you wish!!                                                 *
  36.  *                                                                     *
  37.  *  Thanks for trying IsToday...                                       *
  38.  *                                                                     *
  39.  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *)
  40.  
  41.