Computing.Net > Forums > Solaris > How to detrmine 32 os 64 bit OS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to detrmine 32 os 64 bit OS

Reply to Message Icon

Name: spazmogizmo
Date: January 12, 2004 at 15:53:28 Pacific
OS: Solaris 2.6
CPU/Ram: 4/1GB
Comment:

How can I determine 32 bit or 64 bit on Solaris 2.6 isainfo is not found



Sponsored Link
Ads by Google

Response Number 1
Name: sch
Date: January 22, 2004 at 21:25:39 Pacific
Reply:

If /usr/bin/isainfo cannot be found, then the OS only
supports 32-bit process address spaces. (Solaris 7
was the first version that could run 64-bit binaries
on certain SPARC-based systems.)

So a ksh-based test might look something like

if [ -x /usr/bin/isainfo ]; then
bits=`/usr/bin/isainfo -b`
else
bits=32
fi

Cheers
Stephen


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: How to detrmine 32 os 64 bit OS

32 or 64 bit solaris www.computing.net/answers/solaris/32-or-64-bit-solaris/4350.html

How to check the OS bit ? www.computing.net/answers/solaris/how-to-check-the-os-bit-/3106.html

How to check whether it is 64 bit o www.computing.net/answers/solaris/how-to-check-whether-it-is-64-bit-o/2671.html