I would like to be able to have a shell script detect what version of OEL it is running on. I notice that when I startup a server (actually, running under VMworkstation on my laptop) the console gives this
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
Kernel 2.6.18-164.el5 on an i686
vlnx54 login:
But when I connect from putty, I only get last login time, and "uname" gives this:
[root@vmlnx54 hgfs]# uname -a
Linux vmlnx54.vmdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 02:16:47 EDT 2009 i686 i686 i386 GNU/Linux
So where is the text coming from that shows on the console at the end of boot-up, and what can my script check to get that it is running on, say 5.4 vs. 5.5?