1834404 Members
2786 Online
110067 Solutions
New Discussion

Re: Default Variable

 
Jason Tan
Advisor

Default Variable

May i know where can i find more information about default variable such as $LOGNAME, $HOME, $PATH,...actually how many are them? Where can i get the list?

Second thing is, can some body provide me URL for latest patch and update on HP-UX 11.x and 10.x, rather than using search or register. THanks.
smtan
4 REPLIES 4
Michael Tully
Honored Contributor

Re: Default Variable

For this information, have a look at the 'ksh' man page. The items your asking about are part of the 'shell'

For the latest patch bundles see:

http://www.software.hp.com/SUPPORT_PLUS/
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: Default Variable

Do a man on environ this will tell you all the environment variables you can set.

http://www2.itrc.hp.com/service/patch/search.do?pageContextName=hpux:::

use this URL to find all latest patches for 11.x 10.x
in the search just give brouse by patch list and select the OS this will give you all the patches for that OS

Thanks
Rajeev
Scott Corzine
Advisor

Re: Default Variable

Hi-

The full story isn't that simple:

There are a small number of environment variables ($PATH, etc) which have a general effect on all programs. These should be documented in the environ man page.

There are a larger number of variables that your shell uses (such as $ENV), check the man page for each specific shell (ksh, sh, etc). X11 has its own variables (e.g. $DISPLAY) too.

Frequently a number of the above will be predefined during the login process, either during login, shell creation, or reading the .profile (etc). Sometimes the telnet or ssh server will set environment variables supplied by the remote client.

Any program can define its own environment variables (e.g. ssh has an SSH_AUTH_SOCK), which makes the complete list of variables unbounded. Unfortunately, this means checking each of the effected man pages.

Generally, the man page for a program should refer to any environment variables it uses, with the exception of those in environ. Of course, not everything gets documented.

Hope this helps,
-Scott-
Bill Hassell
Honored Contributor

Re: Default Variable

While man pages for your shell (sh-posix, ksh, csh, absh, etc) will tell you what you can expect to see, the defaults are also controlled by the system administrator and in the case of $TERM, can be set by the telnet protocol. The list will vary depending on the shell used by the user, and most important for workstation (VUE or CDE or other Xwindow managers) user, whether the user actually logged into a terminal window. (see the man page for xterm, hpterm and dtterm for the loginShell oiption) These 'strange' windows do not really login and do not run standard profiles.

The patches are all located at the SupportPlus web page: http://www.software.hp.com/SUPPORT_PLUS/

Note that the download is freebut you must register so patch notifications can be sent to you if necessary. You'll need two patch bundles: hardware enablement (HWE) and Quality Pack (QPK). This is several hundred megs so be prepared for a long download.


Bill Hassell, sysadmin