
kill | 671
Bash and Korn
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Make a directory if it doesn’t exist:
if [ ! -d $dir ]; then
mkdir $dir
chmod 775 $dir
fi
integer
integer
Korn shell alias for typeset -i. Specify integer variables.
jobs
jobs [options] [jobIDs]
List all running or stopped jobs, or list those specified by jobIDs.
For example, you can check whether a long compilation or text
format is still running. Also useful before logging out. See the
earlier section “Job Control.”
Options
-l List job IDs and process group IDs.
-n List only jobs whose status changed since last notification.
-p List process group IDs only.
-r List running jobs only. Bash only.
-x cmd
Replace each job ID found in cmd with the associated process
ID and then execute cmd. Bash only.
kill
kill [options] IDs
Terminate each specified process ID or job ID. You must own the
process or be a privileged user. This built-in command is similar to
/usr/bin/kill, described in Chapter 3. See the earlier section “Job
Control.”
Options
-l List the signal names. (Used by itself.)
-n num
Send the given signal number. Not ksh88.
-s name
Send the given signal name. Not ksh88.
-signal
The signal number (from /usr/include/sys/signal.h) or name
(from kill -l). With a signal number of 9, the kill is absolute.
Signals
Signals are defined in /usr/include/sys/signal.h and are listed here
without ...