Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (m - o) osh(1)
The default value is -jobid -1.
-lib pathname Specifies the OSS pathname of a user library file in the Guardian file system to be
used by the child process; the program file for the child process is modified to
point to the specified library.
Use of this option requires write access to the program file for the child process.
The library file must be in the Guardian file system on the same HP node as the
program file for the child process.
This option is needed only when a child process requires a user library and an
alternate is needed. The default action is to run the child process with no
modification to its user library usage.
+lib Specifies that the child process is to run without any user library file; the program
file for the child process is modified so that it does not point to a library.
Use of this option requires write access to the program file for the child process.
This option is needed only when a child process has used a user library that is no
longer needed. The default action is to run the child process with no modification
to its user library usage.
-ls Specifies that the child process is a login shell. The last pathname in the argv[0]
value passed to the child process is prefixed by a minus (-), indicating that the
/etc/profile and $HOME/.profile files should be run.
Refer to the rules later in this reference page under Process Environment for
more information on the source of the values used for the initial login and current
working directories.
If the osh command is used without specifying either the -p or -prog option, then
the -ls option is the default option and causes execution of the /bin/sh file as a
login shell.
+ls Specifies that the child process is not a login shell (the value passed to the child
process in argv[0] is not changed).
The osh command sets the current working directory for the child process to the
directory specified by the current value of the PWD PARAM. If the PWD
PARAM is not specified, osh command sets the current working directory for the
child process to the current Guardian file system default volume and subvolume
(as indicated in the =_DEFAULTS DEFINE). Refer to the rules later in this refer-
ence page under Process Environment for more information on the source of the
value used for this directory.
If the osh command is used with either the -p or -prog option, then the +ls option
is the default option.
-name {/G/ | /E/nodename/G/}processname
Starts the child process as a named process using the specified name; processname
must conform to Guardian process name rules for length.
If /G/ or /E/nodename/G/ is omitted, the full filename of the process is resolved
using Guardian environment rules. Refer to the RUN command description in the
TACL Reference Manual for the rules affecting process name length and resolu-
tion.
The rules for mapping between Guardian filenames and OSS pathnames mean that
processname cannot begin with the dollar sign ($) used in the Guardian environ-
ment. Similarly, nodename cannot begin with the backslash (\) character used in
527188-003 Hewlett-Packard Company 6−95