- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bash not working
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2010 09:02 AM
01-30-2010 09:02 AM
I have installed bash utility in B.11.23 server,which is downloaded from below link.
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.0.033/
But when i type bash in the prompt, throws message as bash not found.Any settings needs to be done post installation to work with bash..
Please suggest on this..
Regards
Pavan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2010 09:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2010 09:48 AM
01-30-2010 09:48 AM
Re: bash not working
Packages from the HP-UX Porting Centre are installed in '/usr/local' --- in this case, '/usr/local/bin'. Normally this isn't part of your PATH. Either add '/usr/local/bin' to your PATH or use '/usr/local/bin/bash' to invoke the shell.
Of course, if you are modifying the default shell for a user, specify the absolute path. And, never, change 'root's default shell (as defined in '/etc/passwd') from anything other than '/sbin/sh'. Changing root's default shell can lead to an un-bootable (start-able) server.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2010 02:21 PM
01-30-2010 02:21 PM
Re: bash not working
commands, try
man
Look for PATH.
To save everyone much time on questions like
this, try
man
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2010 11:16 PM
01-30-2010 11:16 PM
Re: bash not working
>>>bash not found
Type your name 'Pavan' and system will throw-out message 'Pavan: not found' except you've got an executable calles 'Pavan' on the PATH.
As suggested, If you have installed bash and all its dependencies, you should get bash.By default bash should be installed under /usr/local.
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2010 11:34 PM
01-30-2010 11:34 PM
Re: bash not working
Sorry for delayed response.I have to install all the dependencies to bash work.Let me install the same first,i will update u status.
And i agree that i asked silly Q without trying with full path /usr/local/bin/bash. :)
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2010 11:59 PM
01-31-2010 11:59 PM
Re: bash not working
I have installed run time dependencies and now bash works fine.But problem is that i have to give full path /usr/local/bin/bash to invoke bash.Is there any way to invoke bash by just typing bash..
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 12:07 AM
02-01-2010 12:07 AM
Re: bash not working
You must add the string: /usr/local/bin/bash
to your PATH variable.
Check /etc/profile.
Best regards
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 12:11 AM
02-01-2010 12:11 AM
Re: bash not working
This is elementary shells 101. You will need to add the path of bash to PATH:
PATH=$PATH:/usr/local/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 12:13 AM
02-01-2010 12:13 AM
Re: bash not working
I have added the /usr/local/bin in /etc/profile.But its not applicable to all the users.but when i added the same in users .profile under home directory ,its worked for that particular user.
Then how to enable the bash to all the user..?
It was my understanding that /etc/profile is applicable to all the user.
Regards\
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 12:41 AM
02-01-2010 12:41 AM
Re: bash not working
You are correct. /etc/profile is for all the users. But this is only sourced when some user log into the system.
If someone does not want to logoff then login back, can issue a
source /etc/profile
Best regards
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 04:46 AM
02-01-2010 04:46 AM
Re: bash not working
> to your PATH variable.
No.
> [...] You will need to add the path of bash
> to PATH:
> PATH=$PATH:/usr/local/bin
Yes.
> This is elementary shells 101. [...]
Yes. Has anyone yet suggested this?:
man
If not, then let me suggest:
man
If that fails, then there are whole books
written to provide an introduction to UNIX
(-like) systems.
> It was my understanding that /etc/profile
> is applicable to all the user.
And what, exactly, did you do which caused
you to doubt it? A useful problem
description often includes a transcript
showing the actual commands used, and the
actual output from those commands. Saying
only that something "does not work" is not a
useful problem description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010 04:54 AM
02-01-2010 04:54 AM
Re: bash not working
> to your PATH variable.
>No.
This is correct, Steven Schweda pointed out right. Extract "bash" from that string.
must be read as:
> You must add the string: /usr/local/bin
> to your PATH variable.
Horia.