Hugo Garcia wrote:
> Hi
> 
> I have to modify a sh script that currently uses 'uname -s' to to
> distinquish between linux, freebsd and solaris. I would like to be
> more specific and add a test for the different versions of
> OpenSolaris. Is there a table somewhere with the different outputs
> from uname on diff versions of OpenSolaris?
> 
> For example my 'uname -a; is
> 
> $ uname -a
> SunOS boulder 5.11 snv_91 i86pc i386 i86pc Solaris
> 
> What is it for an x86 32 bit machine? For a Sparc platform?..

sparc machines look like this:

$ uname -a
SunOS xxx 5.11 snv_92 sun4u sparc SUNW,A70

you can also utter
$ uname -p
sparc

if you need to find out whether you're running 32-bit or 64-bit, isainfo 
-kv is your friend:

$ isainfo -kv
64-bit sparcv9 kernel modules

HTH
Michael
-- 
Michael Schuster        http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to