home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 3 / Developers_Source_Vol_03_1996.iso / unixr / mar95 / rice11.gif < prev    next >
Graphics Interchange Format  |  1995-09-26  |  177.7 KB  |  649x596  |  8-bit (106 colors)
   ocr: AS Script TO Monitor Disk Usage FIGURE 1 #i/bin/sh set S(LINE) # # #. Define two variables: # We are, only interested in the / # FILESYS is the file system we are # file system # interested in. # # THRESHOLD is the minimum acceptable if "$1" = S(FILESYS) I # free MB. then # # FILESYSE"T" # The 5th field is the free space THRESHOLD=TUUU # - in MB. # If it is Less than 100, alert # # the user. # Run etc/dfspace to determine available # # disk space if C $5 -Lt SLTHRESHOLD? ] # then etc/dtspace I while read LINE bin/echo "File system $1 I do is low on space- I # $5 MB remaining." a #S Skip the bl ...