- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Setting an environment
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
09-20-2006 12:51 PM
09-20-2006 12:51 PM
Setting an environment
the instructions say to set it in the users .login file by using "setenv"
I read on hp that setenv is not avaliable on hp-ux11i V1 so I dont know what to do. I tried set and env but im not sure how to write it in the .login
here are the changes Im suppose to make
setenv PLATFORM `uname -s`_`uname -r`
there are a few others but its in the same format....
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 01:14 PM
09-20-2006 01:14 PM
Re: Setting an environment
setenv VAR1 "value"
becomes
VAR1=value;export VAR1
Alternatively, you could change your default shell to csh by modifying the default shell in /etc/passwd, but since csh is NOT a modern shell and lacks a lot of features I think you'd be better of converting the commands to a POSIX compatible format (sh, ksh, etc.)
If you have more questions about syntax I'm sure a lot of people here would love to help out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 03:53 PM
09-20-2006 03:53 PM
Re: Setting an environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 04:04 PM
09-20-2006 04:04 PM
Re: Setting an environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 04:18 PM
09-20-2006 04:18 PM
Re: Setting an environment
setenv for V1 of hpux does not excist, what do I use...
The exprt he said earlier was for Posix shell...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 07:10 PM
09-20-2006 07:10 PM
Re: Setting an environment
So it's got to be available when you run this shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 01:42 AM
09-21-2006 01:42 AM
Re: Setting an environment
http://devrsrc1.external.hp.com/STKT/impacts/i331.html
we have v1
Im not sure if what you told me is still true. This is why I thought setenv didnt work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 02:04 AM
09-21-2006 02:04 AM
Re: Setting an environment
I think you're confusing shells and OS releases. First review /etc/passwd. Check which shells your users are using. Then change the appropriate file in the appropriate way based on the shell each user has assigned.
Under csh
==========
* Login script: /home/user/.login
* Login script: /home/user/.cshrc
* Syntax for setting/exporting an environmental variable: "sentenv VARIABLE value"
Under sh-posix, ksh, etc.
==========================
* Login script: /home/user/.profile
* Syntax for setting/exporting an environmental variable: "VARIABLE=value; export VARIABLE"
For other differences between various shells, see:
www.hep.phy.cam.ac.uk/lhcb/LHCbSoftTraining/documents/ShellChoice.pdf
As was already mentioned, use of csh is deprecated. You should switch your users over to sh-posix or ksh, if possible.
PCS