EROS DATA CENTER ************************************QREPORT************************************ QREPORT is a disk quota report program. It reports UIC, username, blocks used, % of base quota used, base quota and extended quota for each valid UIC on the current default disk family (SYS$DISK). QREPORT was written for use with the DISKUSE utility found on the fall 83 DECUS tape, but it can be patched to work with the normal VMS quota scheme. The username information is read from the UAF using RMS ISAM. If multiple users have the same UIC, the first user (alphabetically) is reported as the owner. If a UIC cannot be found in the UAF, the user name will be printed as '????????????'. The report is broken up into UIC groups with the exception of the first page, which reports those UIC's having unlimited quotas (signified on our system by having a base quota of 999999). Group totals and grand totals are given. Grand totals do not include the totals for the unlimited quota UIC's. This program assumes that you are using the DISKUSE program found on the Fall 1983 DECUS tape. DISKUSE treats the overdraft quota as the base quota and treats the permanent quota as your extended quota. QREPORT labels the two quotas as if you are using DISKUSE. You can use this program without DISKUSE if you change the following lines; MOVL DQF$L_OVERDRAFT(R11),R2 ; ***** BASE QUOTA ***** MOVL DQF$L_PERMQUOTA(R11),R5 ; ***** EXTENDED QUOTA ***** TO MOVL DQF$L_OVERDRAFT(R11),R5 ; ***** EXTENDED QUOTA ***** MOVL DQF$L_PERMQUOTA(R11),R2 ; ***** BASE QUOTA ***** NOTE: Use of this program requires a system UIC, BYPASS or SYSPRV. It is not a good idea to install it with BYPASS or SYSPRV. NOTE: QREPORT has not been tested under VMS V4.0 and may not run because of the expanded UIC size in V4.0 and possible changes to the UAF. Compile and link thusly; @QREPORT **********************************TREE.COM************************************* Tree.com is a command file which produces a directory tree of a specified disk or disk family. No files or file information is given, only directory names. This command file was written to use BYPASS privilege, but SETPRV will also work. Under V4.0, READALL should work too. To use, type; @TREE diskname: or @TREE Omission of a disk name causes TREE to use your current default disk SYS$DISK. Several temporary files are created, but the final output is TREE.DAT in your current directory. A copy is also printed on the system default printer. Since TREE gets its information from the DIRECTORY utility, any V4 changes could change the positioning of certain data within a print line. If this happens, it should be quite simple to fix the problem. **********************************FLIPPER************************************** FLIPPER was designed to give a process an increased percentage of the CPU without locking up the system. If you have a process which is compute bound, and you increase the priority above 4, it will "hog" the system and may force a reboot. FLIPPER runs at priority 5 and flips another jobs priority between 4 and 5 in 1 second intervals. This gives the process a larger percentage of the CPU while still allowing other processes to run. Up to 20 processes can be controlled at one time. When the last process terminates, FLIPPER terminates. Note that FLIPPER is written in C. To run, you must first define a symbol; FLIP :== $disk:[dir]FLIPPER Then you give it the process ids; FLIP 3002a 5001f 70022 ************************************MORE*************************************** MORE emulates the function of the MORE utility of UNIX. It types text much like the TYPE command, but it pauses after each screen of data. This version is designed to work with VT52 and VT100 terminals, as it uses reverse video and cursor positioning. Other terminals could easily be handled by making minor changes. Once MORE pauses, it displays the name of the file and the percentage of the file that has been read. This percentage is not too accurate for small files but is still in the ballpark. At the pause, the user may type the following commands; Advances 1 page (23 lines) Advances 1 line D Advances half a page Q Quits the program MORE does not currently handle wildcarding, but may be changed at some future release. Other handy things which could be added are reverse and search functions. You should define the following symbol; MORE :== $disk:[directory]MORE A compile/link command file "MORE.COM" is provided. Note that MORE is written in C. ******************************************************************************* EROS stands for Earth Resources Observation Systems and is not related in any way with the skin mag of the same name. Written and submitted by: Thomas Bodoh U.S.G.S. / EROS data center Mundt Federal Building Sioux Falls, SD 57198 (605) 594-2271 (may change soon, try 594-6581)