- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting Environment Variables
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
08-16-2000 09:47 AM
08-16-2000 09:47 AM
AGENT_DIR=/opt/agent/service
Where would I set this to make it permenent and what is the syntax.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:47 AM
08-16-2000 09:47 AM
Re: Setting Environment Variables
export
Thats all...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:49 AM
08-16-2000 09:49 AM
Re: Setting Environment Variables
Regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:49 AM
08-16-2000 09:49 AM
Re: Setting Environment Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:50 AM
08-16-2000 09:50 AM
Re: Setting Environment Variables
AGENT....=...
export AGENT...
This would be global for all users. If you are looking for a particular to have this variable, use the $HOME/.profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:55 AM
08-16-2000 09:55 AM
Re: Setting Environment Variables
If you were new, do:
cp /etc/profile /etc/profile.16.08.00 (make a copy of the current)
vi profile
VAR=whatever
export VAR
If you want it for a particular user, in $HOME/.profile ( in .profile of that specific user's home directory). For root is the same available. If root's home dir is / modify /.profile with the same entry.
For cshell, the file to be modified is .login and the command is the same with set in front of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:56 AM
08-16-2000 09:56 AM
Re: Setting Environment Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:58 AM
08-16-2000 09:58 AM
SolutionAlso remember to export the variable after setting it.
In case you are using the CDE environment ensure that your .dtprofile has DTSOURCEPROFILE set to true otherwise it won't source your .profile.
Also ensure that you set your *loginShell to TRUE in your /etc/dt/config/C/sys.resources file. If the file doesn't exist it should be under /usr/dt/config/ .
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:15 AM
08-16-2000 10:15 AM
Re: Setting Environment Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 11:35 AM
08-16-2000 11:35 AM
Re: Setting Environment Variables
hpterm*loginShell :True should do the trick