I am writing a Shell script for identifying OS installed on the machine (it can Be any Unix like Solaris, AIX, RHEL, OEL, HP-UX ). With That I want to select appropriate software listed out in a file.
My Question here is, what are the appropriate flags to be used with "uname" command to accurately Identify OS and all necessary parameters like kernal (on all platforms), whoes entries I should maintain in the File along with software name.
its not a common file across all platforms, neither the release files on all platform has common format.
I want to have specific information (in a tabular form) in a file.
Example data I want to have in a csv file is something like below. ( I am expecting right columns/uname flags which are valid accross all platforms and can be mentioned appropriately against software verision
The config.guess shell script referred to by yazu is very thorough and can discriminate among an impressive number of systems.
Even if you do not use config.guess directly, you may be able to learn something from how they determine the system, including the use of uname ... cheers, drl
Yes,I am using the same approach, however I just want to understand what should be used on every specific platform in order to identify the software compatibility.
When we say a software is compatible for 32-bit/x86/i386 etc. what it refers to
is it processor type or hardware platform or hardware name (e.g. Linux Uname flags -p,-i or -m respectively) or its something else.
If you can clarify this I will be able to look for appropriate flags to be listed.