Washington, D.C. RSX LUG Submissions Fall 1980 DECUS The Washington LUG submission consists of the following: 1. A pair of command files which operate as command responders. One, 'cmd.cmd', accepts a command prototype which contains INDIRECT type substitution arguments within the line, prompts for each argument then spawns the command line. Multiple commands can be spawned by separating them with "|"'s. For example, to time a set of compiles: >@CMD TIME|F4P 'FILE','FILE'/-SP='FILE'|TIME or >@CMD Enter prototype .... TIME|F4P 'FILE','FILE'/-SP='FILE'/TR|TIME ; Enter: * FILE [S]: TEST >TIME 12:55:09 20-OCT-80 >F4P TEST,TEST/-SP=TEST/TR >TIME 12:55:13 20-OCT-80 ; Enter: * FILE [S]: COPYDV >TIME 12:55:28 20-OCT-80 >F4P COPYDV,COPYDV/-SP=COPYDV/TR >TIME 12:55:38 20-OCT-80 ; Enter: * FILE [S]: ^Z >@ TIME|FOR 'FILE','FILE'/-SP='FILE'|TIME etc. Another function of the command file occurs when the input line contains NO substitution arguments. In this case the user will be prompted for a repeat count. defaults to an continuous repeat. For example, to print out a number of identical labels where a pattern is in a file: @CMD PIP TT4:=LABEL.TXT * Enter repeat count[N]: 100 The above will print 100 copies of label.txt on tt4:. The other command file performs similar things with a file as input rather than the keyboard. The file can be an existing file containing a list, one item per line, or can be created on the fly using a SRD select string. The following example creates a list of all files created on the current day, issues a PIP /LI for each file, copies each to tape, and deletes the file if the copy is successful. Note that valid IND lines can be intermingled with the MCR commands. >@LIST * Enter input file [S]: * Enter SRD select string [S]: /DA/HV >SRD TEMPLIST.LST;1=/DA/HV * Enter prototype... PIP 'FILE'/LI|PIP MT:='FILE'|.IF GT 1 .GOTO 10|PIP 'FILE'/DE >PIP TEST.FTN;1/LI ....DIRECTORY LISTING STUFF.... >PIP MT:=TEST.FTN;1 >PIP TEST.FTN;1/DE >PIP NEW.FTN;1/LI ....MORE LISTING STUFF.... >PIP MT:=NEW.FTN;1 ... ERROR HERE >PIP NEXT.FTN;1/LI etc. >@ The only known bug in these command files is that the substitution arguments, i.e. 'FILE' must be in UPPER case, AT. complains about syntax errors for lower case variable names. 2. TTP is a Tape Transfer Program that supports tape to disk, disk to tape, and tape to tape transfers. TTP will do blocking/unblocking, code conversions, record and file skipping, selective re-winding of volumes, transfers by record count, and many other options. The only known bug is a maximum record count of 32767. Any file longer than this will be truncated. A workaround is to transfer 32000 records, don't rewind input, transfer 32000 etc., then merge the files with PIP. The bug was left in, so that the program would be usable under FORTRAN IV as well as F4P. 3. FMB is a program for recovering files from mountable but garbled disks. The program allows convenient access to the file system, but allows one to bypass most errors encountered. Files must be copied to another volume. The HOME block, index file, file mapping info are all optionally displayed. This program has only been tested using F4P. It should work, but... 4. COPYDV is a program for making image copies of any disk device (i.e. block for block copies). The program was written to copy foreign structured devices to the MONSANTO virtual disks. The program has come to be used for duplication of RT11 and Diagnostic (DOS) format disks without taking a multiuser M Plus system down. The combination of the virtual disk package and this program has become our standard method of backup & restore for RT11 volumes. All of these files are in active use at AFRRI, so if you run across any bugs, please let me know. I'll try to fix any problems as time permits. Dr. L. Michael Fraser Biomathematics and Computer Support Dept. Armed Forces Radiobiology Research Inst. Mail Stop: BCS Bethesda, Maryland 20014