HP-UX HB v13.00 Ch-11 - Software Development

HP-UX Handbook Rev 13.00 Page 43 (of 101)
Chapter 11 Software Development
October 29, 2013
JDK and JRE are free. They can be installed from an application CD or downloaded from
the java product page [1], which always holds the latest and previous releases.
Java upgrades are not available as patches. New versions can always be downloaded from the
above website as they become available. There is however a list of HP-UX patches that are
recommended or even required for java. These are listed at
http://ftp.hp.com/pub/softlib/hpuxjava-patchinfo/index.html
Scripting Languages
Programs (scripts) written in scripting languages don't need to be compiled before they can be
executed. Instead they are passed to an interpreter which translates them at runtime. This makes
scripts easy to handle, but also slow. The interpreter can be seen as the runtime environment for
a script.
Shells
The most commonly used script interpreters in a Unix environment are the shells. They are part
of the basic functionality of every Unix platform. Not only the user's interaction with the system
is managed via a shell, also the exec(2) libc functions/system calls rely on a shell to execute
programs they do not recognize.
The shell provides the environment for using commands, doing arithmetical operations, using an
editor (e.g. vi) etc. Some nice features are often built-in like history and file name expansion.
The following shells come with HP-UX:
Shell
Program Path
POSIX
/usr/bin/sh, /sbin/sh
Korn
/usr/bin/ksh
Restricted
/usr/bin/rsh, /usr/bin/rksh
C
/usr/bin/csh
Key
/usr/bin/keysh
Both the Posix-Shell and the Kornshell are based on the Bourne-Shell which meanwhile is
obsolete. The Kornshell has extended the features of the Bourne-Shell, the Posix-Shell is very
similar to the Kornshell and was introduced to create an official standard for UNIX shells.
Other shells, e.g. bash which is widely used under Linux, can be downloaded from the HP-UX
porting center [10] websites, but are unsupported by the Response Center.
Shell updates are always available as patches.