home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / bug.chk.sgi < prev    next >
Text File  |  1992-03-10  |  999b  |  49 lines

  1. #!/bin/sh
  2. #
  3. #  SGI module for bug/vulnerability checking
  4. #
  5. ECHO=/bin/echo
  6. TEST=/bin/test
  7. LS=/bin/ls
  8. LS_OPTS="-slagL"
  9. ARCH=/bin/arch
  10. GREP=/bin/grep
  11. AWK=/bin/awk
  12. BUG="$AWK -f ./bug_cmp"
  13.  
  14. if $TEST ! -f ./bug_cmp ; then
  15.     $ECHO "Must have bug compare module, ./bug_cmp, to run..."
  16.     exit 2
  17.     fi
  18. # what is the date?  We just need the month and year...
  19. # Format: Fri Feb  7 14:16:55 PST 1992
  20. if $TEST $# -eq "2" ; then
  21.         real_date="$1 $2"
  22. else
  23.         real_date=`$DATE | $AWK '{print $2, $NF}'`
  24.         fi
  25.  
  26. # Mail
  27. #
  28. # IRIX 3.3 & 3.31
  29. Mail="/usr/sbin/Mail"
  30. fix_date="31 Oct 1990"
  31. cert_advis="CA-90:08"
  32. if $TEST -f "$Mail" ; then
  33.     cur_date=`$LS $LS_OPTS $Mail | $AWK '{print $8, $7, $9}'`
  34.     $ECHO $Mail $fix_date $cur_date $cert_advis $real_date | $BUG
  35.     fi
  36.  
  37. # fmt
  38. #
  39. # Fixed in 4.0
  40. fmt="/usr/sbin/fmt"
  41. fix_date="26 Aug 1991"
  42. cert_advis="CA-91:14"
  43. if $TEST -f "$fmt" ; then
  44.     cur_date=`$LS $LS_OPTS $fmt | $AWK '{print $8, $7, $9}'`
  45.     $ECHO $fmt $fix_date $cur_date $cert_advis $real_date | $BUG
  46.     fi
  47.  
  48. # finis
  49.