1832255 Members
2529 Online
110041 Solutions
New Discussion

HP-Unix with BASH

 
deepak jain
Occasional Contributor

HP-Unix with BASH

I am new with hp-ux. recently i used linux RedHat. I want to use BASH with HP-Unix. what i have to do for this? I checked my /etc/shells there is not entry for bash.
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: HP-Unix with BASH

This is part of HP-UX Internet Express and you can download it from http://software.hp.com

Never use bash for root (in /etc/passwd) for HP-UX!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Arunvijai_4
Honored Contributor

Re: HP-Unix with BASH

Hi Deepak,

BASH is not installed by default in HP-UX. You need to download and install from either of these.

1) Bash is part of TCOpensource which is supported by HP-UX

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

2) Also, it is part of Linux porting kit

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9891AA

3) Download and install from HP-UX porting center,

http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.1.16/

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Jaime Bolanos Rojas.
Honored Contributor

Re: HP-Unix with BASH

Also if you are the type that likes to use the history feature built in the shell, remember that using bash it's not a good idea.
Unless you can get bash to work with the same behavior than the posix shell.

Regards,

Jaime.
Work hard when the need comes out.
Steven E. Protter
Exalted Contributor

Re: HP-Unix with BASH

Shalom,

You can install a bash shell, but most bash scripts will work unmodified with HP-UX merely by modifying the shell variable.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
inventsekar_1
Respected Contributor

Re: HP-Unix with BASH

Torsten-,
"Never use bash for root (in /etc/passwd) for HP-UX!"

why.. is that will cause problems..?


Be Tomorrow, Today.
James R. Ferguson
Acclaimed Contributor

Re: HP-Unix with BASH

Hi:

Using other than '/sbin/sh' for root will lead to a system that doesn't startup!

In the early stages of the startup sequence *before* '/usr' is mounted, or if you need to bring a system up only as far as single-user mode, no command has access to '/usr'.

Shells other than '/sbin/sh', that reside in '/usr' have dynamically-linked libraries which reduces their runtime memory requirements. Since these libraries also reside in the '/usr' directory, they can't run until '/usr' is mounted. Hence, you *must* use '/sbin/sh' as the default shell for 'root'.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: HP-Unix with BASH

Thanks to JRF for answering this question!

Otherwise the system will end in single user mode with some errors like "no shell".

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
deepak jain
Occasional Contributor

Re: HP-Unix with BASH

I got the solution with installed BASH, downloaded from internet.

thanks