You can do this using the uname
command which prints out useful system information. In order to get just the version number (release level) use the -r
flag:
sharfah@starship:~> uname -r 5.10Example:
OS=`uname` OS_VERSION=`uname -r` if [ "$OS" = "SunOS" ] then JAVA=/utils/solaris/java_${OS_VERSION}/bin elif [ "$OS" = "Linux" ] then JAVA=/utils/linux/java/bin else echo "Unknown operating system $OS" fiIf you want more details on your Solaris version, look at
/etc/release
.
sharfah@starship:~> cat /etc/release Solaris 10 8/07 s10x_u4wos_12b X86 Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 16 August 2007
Hi,
ReplyDeleteI needed the steps to be followed for SOLARIS migration from 5.0 to 10.0 .If you have it pls mail them at abhir83@rediffmail.com
Abhishek