HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

k
ksh(1) ksh(1)
kill [ -sig] process ...
Sends either the TERM (terminate) signal or the specified signal to the specified jobs or
processes. Signals are given either by number or name (as given in signal(5), stripped of
the prefix
SIG). The signal names are listed by
kill -l. No default exists; merely typ-
ing
kill does not affect the current job. If the signal being sent is
TERM (terminate) or
HUP (hangup), the job or process is sent a
CONT (continue) signal when stopped. The
process argument can be either a process ID or job. If the first argument to
kill is a
negative integer, it is interpreted as a sig argument and not as a process group. See also
kill(1).
let arg ... Each arg is a separate arithmetic expression to be evaluated. See Arithmetic Evalua-
tion above, for a description of arithmetic expression evaluation. The exit status is 0 if
the value of the last expression is nonzero, and 1 otherwise.
% newgrp [ arg ... ]
Equivalent to exec newgrp arg ....
print[ -Rnprsu[ n ]] [arg ... ]
The shell output mechanism. With no options or with option
- or -- the arguments are
printed on standard output as described by echo(1). Raw mode,
-R or -r, ignores the
escape conventions of echo. The
-R
option prints all subsequent arguments and options
other than
-n. The -p option causes the arguments to be written onto the pipe of the
process spawned with |& instead of standard output. The -s option causes the argu-
ments to be written onto the history file instead of standard output. The -u option can
be used to specify a one-digit file descriptor unit number n on which the output is to be
placed. The default is 1. If the option -n is used, no newline character is added to the
output.
pwd [ -L-P ] With no arguments prints the current working directory (equivalent to
print -r -
$PWD). The -L option (default) preserves the logical meaning of the current directory
and -P preserves the physical meaning of the current directory if it is a symbolic link.
See the special cd command, cd(1), ln(1)), and pwd(1).
read [ -prsu[ n ]] [name ][?prompt ][name ... ]
The shell input mechanism. One line is read and broken up into words using the charac-
ters in
IFS as separators. In -r raw mode, \ at the end of a line does not signify line
continuation. The first word is assigned to the first name, the second word to the second
name, etc., with remaining words assigned to the last name. The -p option causes the
input line to be taken from the input pipe of a process spawned by the shell using
|&.If
the
-s option is present, the input is saved as a command in the history file. The option
-u can be used to specify a one-digit file descriptor unit to read from. The file descriptor
can be opened with the exec special command. The default value of n is 0.Ifname is
omitted,
REPLY is used as the default name. The return code is 0, unless an end-of-file
is encountered. An end-of-file with the -p option causes cleanup for this process so that
another process can be spawned. If the first argument contains a ?, the remainder of this
word is used as a prompt when the shell is interactive. If the given file descriptor is
open for writing and is a terminal device, the prompt is placed on this unit. Otherwise
the prompt is issued on file descriptor 2. The return code is 0, unless an end-of-file is
encountered. See also read(1).
%% readonly [ name[ =value ] ... ]
The given names are marked read-only and these names cannot be changed by subse-
quent assignment.
% return [ n ] Causes a shell function to return to the invoking script with the return status specified
by n.Ifn is omitted, the return status is that of the last command executed. Only the
low 8 bits of n are passed back to the caller. If return is invoked while not in a func-
tion or executing a script by the . (dot) built-in command, it has the same effect as an
exit command.
set [ ±aefhkmnopstuvx | ±o option ] ... [ ±A name ][arg ... ]
The following options are used for this command:
-A Array assignment. Unset the variable name and assign values sequentially
from the list arg.If+A is used, the variable name is not unset first.
-a All subsequent defined parameters are automatically exported.
Section 1−−434 Hewlett-Packard Company − 14 − HP-UX 11i Version 2: September 2004