- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: setenv HP-UX 11i
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
Discussions
Discussions
Forums
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
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
тАО06-18-2008 10:38 AM
тАО06-18-2008 10:38 AM
I need to set enviroment for a Vertex, tax calculating software, to be able to debug a problem.
However I can not find "setenv" on my unix 11i system.
I tried "whereis setenv", but did not find any ( maybe not in a path ). After searching for the command ( using "find" ) I found it in a /usr/lib/builtins directory.
The only way to execute it is by using ./ in front ( as a root user ).
My command look like this:
cd /usr/lib/builtins
./setenv VERTEXDEBUG 1
Command executed with no problem, but when I looked at the enviroment ( using "env" ), I did not see VERTEXDEBUG=1
Is this correct "setenv" command?
Miro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 10:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 10:42 AM
тАО06-18-2008 10:42 AM
Re: setenv HP-UX 11i
echo $SHELL
If you are using sh or ksh then you need to use 'export' like:
export VERTEXDEBUG=1
If you are using csh then you use setenv.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 11:17 AM
тАО06-18-2008 11:17 AM
Re: setenv HP-UX 11i
To add:
If you wish to create a file of variables that you want to export to your environment, for example to use in other scripts, do something like this:
# cat myvars
export VERTEXDEBUG=1
export OWNER=miro
...now, when you need to reference these variables in your current environment, source (read) the 'myvars' file thusly:
# . myvars
...that's a dot followed by whitespace, followed by the filename. Do not simply execute the file as this causes it to run in a new, separate shell and childen can't change their parent's environment.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 11:25 AM
тАО06-18-2008 11:25 AM
Re: setenv HP-UX 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 09:15 PM
тАО06-18-2008 09:15 PM
Re: setenv HP-UX 11i
in command line will temorarily export the variables. when you logout it will gone.
if you want to make it permanent add an entry in .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 03:13 AM
тАО06-19-2008 03:13 AM
Re: setenv HP-UX 11i
Miro