GETREV FUNCTION: Creates an AUTOLOG .AGO (a form of command file) file to get revised software from a remote system. Frankly GETREV can be used to copy between accounts or any other purpose where the user wants to compare what exists versus a "verifiable" (one created with /D/H/V switches) directory. HINTS/RESTRICTIONS: Must be run in the same [P,Pn] that the directory is in. The output file (GETREV.AGO) should be run from OPR: in order to write the updated files to other [P,Pn]s. GETREV assumes that the Update System has the files in the same [P,Pn]s as the directory. If this is NOT the case the user should VUE the output file (GETREV.AGO) and make the necessary corrections. GETREV was written to use AUTOLOG (or DYALOG) to get revised versions from another computer. It can easily be modified for any other purpose where the user wishes to copy files from one place to another. GETREV requires VERIFY.LIT and AMOS/L 1.3 or later. FORMAT: . _RUN GETREV DEFAULTS: 1. The directory file name defaults to AMOS 2. The directory file extensions defaults to .DIR 3. All Yes/No questions default to No OPTIONS: There are no options or switches other than the choice of which directory and which logical device on the remote system to get the updated software. OPERATION: Log into the account ([P,Pn]) where the directory to be updated is located: . _LOG DSK0:[1,2] Type RUN GETREV and press the RETURN key. . _RUN GETREV > GETREV will now display about one-half a screen of information and ask: I. More information on AUTOLOG? (Y/N) (def=N) ___________________________________________ If you type a Y and press RETURN you will get the information. Pressing any other key and then RETURN (or just RETURN) will skip to the next screen of information about the operation of GETREV. (GETREV - Ver. 88.2C(1) Rev. 02/01/88) GETREV (Cont'd) Page 2 II. What is the directory to be updated? (def filnam=AMOS) ______________________________________________________ (def ext=.DIR) _______________ If you just press RETURN - GETREV will assume that you wish to update AMOS.DIR. If you just give a 1 to 6 character file name and press RETURN - GETREV will add an extension of .DIR GETREV then checks to make sure that there is a file with that name in the current [P,Pn]. If GETREV can't find one it will return to the request for the directory file name. III. What is the Remote Logical Device to copy from? _______________________________________________ (XXXNN:) (def=DSK0:) ____________________ If you just press RETURN then GETREV will assume that the files you wish to get are located on DSK0:. You can input any three letters and up to two digits plus the colon, then press RETURN. If you enter anything you MUST enter the colon before pressing the RETURN. GETREV then checks for any files with the same name(s) as the ones that GETREV is about to generate. If it finds any GETREV will display those names on the screen and ask for permission to continue. WARNING! The following files WILL be overwritten: ___________________________________________________ (filnam) {filnam} {filnam} ___________________________ Do you wish to continue? (Y/N) (def=N) _______________________________________ If you just press RETURN GETREV will abort. To continue (and therefore abandon those files) you must press Y and then RETURN. GETREV will then inform the user: Phase 1 of GETREV - Create necessary files __________________________________________ UTGRP1.CMD and UTGRP3.BAS are created and then UTGRP3 is compiled to produce UTGRP3.RUN Phase 2 of GETREV - VERIFY/F (dirfilnam) _________________________________________ GETREV will VERIFY the directory file to a file named VERIFY.LST. For confirmation that directory file name will be displayed here. Phase 3 of GETREV - Skip the 'VERIFIED' files _______________________________________________ and list the rest in an AUTOLOG .AGO file to get ________________________________________________ 'em ___ GETREV will look through the VERIFY.LST file and each entry that was not 'VERIFIED' will be listed in another file GETREV.AGO. When finished GETREV will display: There were nnn files in the directory _____________________________________ VERIFY found nnn ________________ GETREV is ready to get nnn of them __________________________________ and then erase the temporary files it created. (GETREV - Ver. 88.2C(1) Rev. 02/01/88) GETREV (Cont'd) Page 3 The output file (GETREV.AGO) has a line for each file in the directory which does not match what is currently on the user's system. The GETREV.AGO file can then be VUEd and modified to suit the user's needs or can be commanded to run after establishing contact with the "Update System" with the AUTOLOG communications program. COMMAND SUMMARY: Create a command file to get any files that are not found where the directory says they should be or do not match the directory's version or hash. ERRORS: I can't work without DSK0:VERIFY.LIT[1,4] - Sorry _________________________________________________ GETREV did a LOOKUP and didn't find VERIFY.LIT in SYS:. Since that is the heart of the program GETREV aborted. ?Cannot find (directory-name) _____________________________ Occurs when the directory name given (or defaulted to) is not found in the user's [P,Pn]. ?Need a colon _____________ Occurs when the user failed to enter a colon(:) at the end of the remote logical device specification. CHARACTERISTICS: GETREV.BAS 18 351-704-453-615 GETREV RUN 11 235-404-016-030 88.2C(1) Takes a directory file (created with DIR/D/H/V dirnam.ext= ), checks that against what is on the user's system, and writes a (command) file to get any files that differ. NOTE: This program is NOT part of the original AMOS/L operating system distributed by Alpha Microsystems. The author of this program is: David W. Barrow III Stonewall Computer Center 1894 Elm Drive Town of Cedarburg West Bend, WI 53095 Telephone (414) 375-AMOS (GETREV - Ver. 88.2C(1) Rev. 02/01/88) .