- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- $PATH problem
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
04-24-2003 05:36 AM
04-24-2003 05:36 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 05:49 AM
04-24-2003 05:49 AM
Re: $PATH problem
Are you running CDE ? If so you must set the variable in .dtprofile or uncomment the line DTSOURCEPROFILE=true in the same file (.dtprofile).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:04 AM
04-24-2003 06:04 AM
Re: $PATH problem
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:05 AM
04-24-2003 06:05 AM
Re: $PATH problem
Well, a global PATH variable is declared in '/etc/PATH' which is sourced (read) by '/etc/profile' when it is read during login.
Obviously, if you choose to add to the global PATH, *every* user gains the new directory as a part of their PATH which may not be desirable.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:07 AM
04-24-2003 06:07 AM
SolutionIf you want to add a directory to the PATH variable so that everybody who logs into the system will get it, you can put it into the /etc/PATH file.
Otherwise, you'll either have to add it to the user's .profile or put it in a separate file and source it into their profile.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:09 AM
04-24-2003 06:09 AM
Re: $PATH problem
It also reads (sources) /etc/PATH, so that is your way to go
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:10 AM
04-24-2003 06:10 AM
Re: $PATH problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:11 AM
04-24-2003 06:11 AM
Re: $PATH problem
When you set a variable while you are logged in, it is for that session only. As you have seen, it goes away when you log out. That is why .profile, .cshrc, .login, etc. exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:25 AM
04-24-2003 06:25 AM
Re: $PATH problem
Has the previous administrator used "setup" to set the path?
Mehdi