
Syntax/Description
Command
test [expr]
test
Exits with a status of 0 (true) or 1 (false) depending on the evaluation
of
EXPR
. Expressions may be unary or binary. Unary expressions are
often used to examine the status of a file. There are string operators
as well, and numeric comparison operators.
time [-p] PIPELINE
time
Execute
PIPELINE
and print a summary of the real time, user CPU
time, and system CPU time spent executing
PIPELINE
when it termi-
nates. The return status is the return status of PIPELINE. The
-p
option
prints the timing summary in a slightly different format. This uses the
value of the TIMEFORMAT variable as the output format.
times
times
Print the accumulated user and system times for processes run from
the shell.
trap [-lp] [ARG SIGNAL_SPEC ...]
trap
The command
ARG
is to be read and executed when the shell receives
signal(s)
SIGNAL_SPEC
. If
ARG
is absent (and a single
SIGNAL_SPEC
is supplied) or
-
, each specified signal is reset to its
original value. If
ARG
is the null string each
SIGNAL_SPEC
is ignored
by the shell and by the commands it invokes. If a
SIGNAL_SPEC
is
EXIT (0) the command ARG is executed on exit from the shell. If a
SIGNAL_SPEC
is DEBUG,
ARG
is executed after every simple
command. If the
-p
option is supplied then the trap commands associ-
ated with each
SIGNAL_SPEC
are displayed. If no arguments are
supplied or if only
-p
is given, trap prints the list of commands asso-
ciated with each signal. Each
SIGNAL_SPEC
is either a signal name
in
signal.h
or a signal number. Signal names are case insensitive
and the SIG prefix is optional.
trap -l
prints a list of signal names
and their corresponding numbers. Note that a signal can be sent to the
shell with
kill -signal $$
.
184
High Availability Guide
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......