home *** CD-ROM | disk | FTP | other *** search
/ ftp.jcu.edu.au / 2014.06.ftp.jcu.edu.au.tar / ftp.jcu.edu.au / v6.3.2b / SWBD63 / fabos-6.3.2b-10.ppc.rpm / fabos-6.3.2b.10.cpio.gz / fabos-6.3.2b.10.cpio / fabos / cliexec / memshow < prev    next >
Text File  |  2010-11-10  |  511b  |  27 lines

  1. #!/bin/sh
  2. #
  3. #    Copyright (c) 2002 Brocade Communications Systems, Inc.
  4. #    All rights reserved.
  5. #
  6. #    File name:   memshow 
  7. #    Module name: fabos/src/utils/sys
  8. #
  9. #    This script is wrapper export proc file /proc/meminfo. 
  10. #    to export dynamic system memory status.
  11. #
  12.  
  13. opt=""
  14. if [ $# = 0 ]; then 
  15.     opt="-b"    
  16. elif [ $# = 1 ]; then 
  17.     if [ "$1" = "-b" -o "$1" = "-k" -o "$1" = "-m" ]; then
  18.         opt=$1
  19.     fi
  20. fi    
  21. if [ "$opt" = "" ]; then
  22.     echo "Usage: $0    [ -b | -k | -m ]"
  23.     exit 1
  24. else
  25.     /usr/bin/free -o $opt
  26. fi
  27.