- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: checkinstall scripts PATH set wrong
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
12-06-2006 03:43 AM
12-06-2006 03:43 AM
I put an echo into the script to find out what its PATH is set to
I added the line "echo path= $PATH"
and here is the output that gave
path= :/usr/sbin:/usr/lbin/sw
so it only appears to be looking in /usr/sbin for any real commands I think this is happening for all checkinstall scripts so I would like to fix this issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 04:18 AM
12-06-2006 04:18 AM
Re: checkinstall scripts PATH set wrong
I'd look at /etc/profile or .profile because patching rarely if ever changes the location of files or the environment variables. More likely , this is a fault in the system environment.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 04:47 AM
12-06-2006 04:47 AM
Re: checkinstall scripts PATH set wrong
UTILS="/usr/lbin/sw/control_utils"
...
. $UTILS
tells me to lookin
/usr/lbin/sw/control_utils
for the issue
looking at the line
PATH=${SW_PATH%:}:/usr/sbin:/usr/lbin/sw
I see no metion of ${SW_PATH%:}
this looks kind of strange with the %: in there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 04:58 AM
12-06-2006 04:58 AM
Re: checkinstall scripts PATH set wrong
so in order to test them on the commandline I need to set these variables.
Is there a way to see what variables that swinstall sets?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 04:24 PM
12-06-2006 04:24 PM
Solution>so in order to test them on the commandline I need to set these variables. Is there a way to see what variables that swinstall sets?
Right, I've wanted to do that. Make sure you use sh and not ksh.
Well, you could use env(1) (/usr/bin/env) to list them all. But they are documented in Software Distributor Administration Guide:
http://docs.hp.com/en/oshpux11iv2.html#Installing%20and%20Updating
http://docs.hp.com/en/B2355-90979/ch11s04.html#d0e30149
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 02:58 AM
12-07-2006 02:58 AM