Operating System - Tru64 Unix
1753439 Members
4913 Online
108794 Solutions
New Discussion юеВ

HP-UX to Tru64 Unix

 
Ousmane
New Member

HP-UX to Tru64 Unix

I have a shell script written for HP-UX and I want to adapt it to Tru64 Unix. I have no Tru64 system running at home. You might help me. So my questions are :

1. what is the result of the the command uname on Tru64 ? Does it return Tru64 Unix or something else

2. How can translate the following command to be understood by Tru64 ?
/bin/getconf KERNL_BITS

best regards

thanks
4 REPLIES 4
Ralf Puchner
Honored Contributor

Re: HP-UX to Tru64 Unix

1. OSF1

2. getconf seems similar to sysconfig -q .
Help() { FirstReadManual(urgently); Go_to_it;; }
Hein van den Heuvel
Honored Contributor

Re: HP-UX to Tru64 Unix

1) what is the result of the the command uname on Tru64 ?

>uname
OSF1
> uname -a
OSF1 V5.1 2650 alpha
Where V5.1 is the release,
and 2650 is the 'build' for that release.
alpha is the platform and it looks like you will only ever see alpha there.


2) How can translate the following command to be understood by Tru64 ?
/bin/getconf KERNL_BITS

You could replace it by: echo 64

:-)

Tru64, as the name implies, is always 64 bit!
So that configuration is not implemented.
(oh, and on hp-ux is is called KERNEL_BITS)

Hein.
Ravi_8
Honored Contributor

Re: HP-UX to Tru64 Unix


Hi

1. OSF1
2. in hp-ux getconf KERNEL_BITS returns kernel size(32 or 64) whereas in Tru64 it's always 64 bit (Tru64 is always 64 bit OS, there is no 32 bit Tru64 OS)
never give up
Ravi_8
Honored Contributor

Re: HP-UX to Tru64 Unix

hi

you can replace the uname command with

sizer -v | awk '{print $2}'
never give up