- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Permanant environment variable setting (newbie...
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
05-03-2004 02:10 AM
05-03-2004 02:10 AM
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:11 AM
05-03-2004 02:11 AM
Re: Permanant environment variable setting (newbie)
You could edit your $HOME/.profile and add your export variable in there.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:11 AM
05-03-2004 02:11 AM
Re: Permanant environment variable setting (newbie)
VARIABLE_NAME=value
Hope it helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:13 AM
05-03-2004 02:13 AM
SolutionFor everybody, put an export statement in /etc/profile.
e.g.
export MYVAR=Furpsplat
or for just one user put the same statement in .profile.
Because /etc/profile is read before .profile, if the same variable is set in both, the last export wins so that it is possible to override the values set in /etc/profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:13 AM
05-03-2004 02:13 AM
Re: Permanant environment variable setting (newbie)
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:16 AM
05-03-2004 02:16 AM
Re: Permanant environment variable setting (newbie)
"export VARIBLE=value"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:31 AM
05-03-2004 02:31 AM
Re: Permanant environment variable setting (newbie)
What is the difference in just putting:
MY_APP_LICENSE=/licenses/license.dat
and
export MY_APP_LICENSE=/licenses/license.dat
in /etc/profile?
If I just do MY_APP_LICENSE=/licenses/license.dat
It seems to hit everyone.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 03:00 AM
05-03-2004 03:00 AM
Re: Permanant environment variable setting (newbie)
You need to export the variable since it is inherited by the sub shell that may be used by the users after login.