- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Commands are not executing properly in one of our ...
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
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
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
09-06-2016 06:33 AM
09-06-2016 06:33 AM
Hi,
when i execute any command i am getting error that sh: not found
For example: ioscan
sh: ioscan: not found.
But if i am executing the full path /usr/sbin/ioscan.It is working.
What will be the reason.Kindly provide solution.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2016 07:00 AM - edited 09-06-2016 06:27 PM
09-06-2016 07:00 AM - edited 09-06-2016 06:27 PM
Re: Commands are not executing properly in one of our server HP-UX B.11.31.
All commands must be run with a full pathname such as /usr/bin/bdf or /usr/sbin/ioscan. HP-UX (like all other Unix-like flavors and even the DOS cmd line) provides a shortcut in the form of an environment variable. The variable is named PATH and is set when you login from the file /etc/PATH. The contents of PATH are a set of colon (:) delimited paths that are searched when you don't precede your command with a path.
You can edit the /etc/PATH file and add /usr/sbin. NOTE: This is one long line. Make sure you just append the text to the end of the line. There must be only one colon followed by the new path. Then to set the new path, logout and log back in again.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2016 02:24 AM