IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > AIX > ... > nmon > Linux startup > Information > Page Comparison
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
Linux startup
Version 3 by nagger
on Mar 14, 2006 07:16.


compared with
Current by mactfines
on Feb 17, 2009 10:34.

(show comment)
 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 2 changes. View first change.

 h2.This was supplied by nmon user Paul Smith - well done Paul.
  
 Call this file nmon make it executable and it should work out the platform you are on and start the right nmon version automatically.
  
 If you have changed of fixes please make a copy here and add them.
  
 {code}
 plat=power # not tested
 [ `expr \`uname -m\` : ".*\(86\)"` = "86" ] && plat=x86
  
 os=`cat /etc/issue`
  os=`head -1 /etc/issue`
 required=no_nmon_found
 case $os in
  *Debian*) required=nmon_"$plat"_debian3 ;; # not tested
  *Fedora*) required=nmon_"$plat"_fedora3 ;; # not tested
  *Shrike*) required=nmon_"$plat"_redhat9 ;;
  *Red\ Hat*release\ 2*) required=nmon_"$plat"_rhel2 ;;
  *Red\ Hat*release\ 3*) required=nmon_"$plat"_rhel3 ;;
  *Red\ Hat*release\ 4*) required=nmon_"$plat"_rhel4 ;;
  *Red\ Hat*release\ 5*) required=nmon_"$plat"_rhel52 ;;
  *SUSE*8\.*) required=nmon_"$plat"_sles8 ;; # not tested
  *SUSE*9\.*) required=nmon_"$plat"_sles9 ;;
  *SUSE*10\.*) required=nmon_"$plat"_sles9 ;;
 esac
 echo Linux version $os and starting up nmon $required
 # Try current directory
 if [[ -e $required ]]
 then
  echo $required $*
  exec $required $*
 fi
 # Try current directory with ./
 if [[ -e ./$required ]]
 then
  echo ./$required $*
  exec ./$required $*
 fi
 # Try same directory as this script
 if [[ -e `dirname $0`/$required ]]
 then
  echo `dirname $0`/$required $*
  exec `dirname $0`/$required $*
 fi
 echo Giving up - where did you put $required ?
 {code}

 
    About IBM Privacy Contact