- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can i set system wide Environment vars at ...
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
10-11-2000 06:56 AM
10-11-2000 06:56 AM
How can i do that on HPUX 11 ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:01 AM
10-11-2000 07:01 AM
Re: How can i set system wide Environment vars at boot ?
directory that sets and exports the variable.
eg, you create a file /etc/dt/config/Xsessions.d/myvars
containing export MYVARIABLE="value"
On restarting Xwindows (either go to init 2 and then back to init 3 or
kill the Xserver, MYVARIABLE will be set for each user.
Please give this a try, also refer to the CDE Advanced User's and System
Adminstrators Guide if you have a copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:02 AM
10-11-2000 07:02 AM
Re: How can i set system wide Environment vars at boot ?
Use the $HOME/.profile for individuals.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:02 AM
10-11-2000 07:02 AM
Re: How can i set system wide Environment vars at boot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:03 AM
10-11-2000 07:03 AM
Re: How can i set system wide Environment vars at boot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:05 AM
10-11-2000 07:05 AM
SolutionModifying /etc/profile will affect each individual use shell and each program/script that sources each config file.
Modifying the Xsessionsd will affect all Xwindow logins, including dtlogin, but not necessarily subshell thereof.
Modifying /etc/rc.config will affect the environments of all startup scripts that conform to standards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:06 AM
10-11-2000 07:06 AM
Re: How can i set system wide Environment vars at boot ?
the files /etc/profiles are used only when opening a shell, and it doesn't seem that the start of the rc files is done in a shell (my vars are not set).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 07:18 AM
10-11-2000 07:18 AM
Re: How can i set system wide Environment vars at boot ?
All the scripts placed there are "sourced" before the rc start.
Thanks to all