home *** CD-ROM | disk | FTP | other *** search
-
-
- ----------------------------------------------------------------------------
- SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE
- ----------------------------------------------------------------------------
-
- TMONTH is SHAREWARE. If you try this program and continue to use it for
- over 30 days you are required to register your copy and make payment of $5
- for use of the program. Please make payment of $5 to:
-
- George Kerber
- 19756 E. Linvale Drive
- Aurora, Colorado 80013
- 303-693-2890
-
-
- ----------------------------------------------------------------------------
- SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE SHAREWARE
- ----------------------------------------------------------------------------
-
-
- TMONTH Copyright (c) 1990 by George Kerber
-
-
- Program: TMONTH
- Programmer: George Kerber
- Application: AmigaDOS
- Written: 09/09/90
- Status: Shareware - Requires shareware payment of $5.
-
-
-
-
- Purpose: TMONTH is a program to allow the easy execution of any series
- of commands from a batch file once a month.
-
- SYNTAX: TMONTH [-h or ?] [program]
-
- -h or ? -- A short help screen will be displayed.
-
- program -- the specified program will be executed if TMONTH
- has not been executed in the current month.
- Entering a program is optional, see below for
- information on TMONTH return codes.
- Description:
- ------------
- Each time TMONTH is executed, it checks the current month and the month of
- the previous time it was executed. If a program name was entered with the
- -p option, it will be executed if TMONTH has not been executed yet in the
- current month. If TMONTH has been executed in the current month, TMONTH
- simply exits without doing anything.
-
- TMONTH also sets the return code returned to AmigaDOS, depending if TMONTH
- has been executed in the current month.
-
- If TMONTH has not been executed it returns a 5 (WARN) to the AmigaDOS shell.
- If TMONTH has been executed in the current month, it returns a 0 to the
- AmigaDOS shell. The return code from TMONTH can be detected using the
- IF WARN/ENDIF functions of AmgiaDOS.
-
-
- Examples:
- ---------
- TMONTH is very useful in your startup-sequence file to perform any type of
- commands once a month. For example, suppose you wanted a message displayed
- on the screen the first time you boot your computer each month. Below is a
- sample excerpt from a startup-sequence.
-
-
- --------------------------------------------------------------------------
- Use this method if you plan on executing more than one command using the
- return code from TMONTH.
-
- ...
- tmonth ; execute the TMONTH program
- if WARN
- echo "This is an example of how TMONTH"
- echo "can be used in your startup-sequence"
- echo "to perform any number of commands the"
- echo "time you use your Amiga each month"
- dir
- endif
- ...
-
- --------------------------------------------------------------------------
- Use this method if you are only planning on executing one command using
- the -p program option.
-
- ...
- tmonth -p echo "It's a new month!"
- ...
-
- --------------------------------------------------------------------------
-
- AtomClock is a great program that dials the Navel Observatory in
- Washington DC and sets your computer clock. This is nice to run once a
- month. TMONTH allows this to be done very easily.
-
- A sample script sample for your startup-sequence in shown below.
-
- ; Use this in a script that is automatically executed everytime
- ; you boot. This will cause Atomclock to be executed once a month during
- ; your boot sequence.
-
- ...
- TMONTH
- if WARN
- stack 10000
- atomclock z/MST ;sets mountain standard time (MST)
- endif
- ...
-
- --------------------------------------------------------------------------
-
-
-
- The program name can be any valid program or batch file name. The program
- or batch file must be in the current directory, in the current PATH or a
- fully qualified path must be entered.
-
-
- Installation:
- -------------
- Copy TMONTH to your logically assigned c: directory.
-
-
- Technical:
- ----------
- TMONTH does not need to create any special files that contain the month
- number of the previous time it was executed. TMONTH actually writes the
- month number of the previous time it was executed to itself. This way
- TMONTH always know internally if it's the first time it was executed in
- the current month.
-
-
- Status:
- -------
- TMONTH is SHAREWARE. You have permission to use this program for a period
- of 30 days. After 30 days you must send the author $5 for the use of the
- program and to register your copy.
-
- An MS-DOS version of TMONTH exists and can be obtained by sending $7
- ($5 shareware payment, $2 shipping and handling) to the author.
-
- I assume no responsibility for the use of this program or it's operation
- (I hate responsibility).
-
-
- George Kerber
- 19756 E. Linvale Drive
- Aurora, Colorado 80013
- (303) 693-2890
-
-
-