kill - Terminate or signal processes

Synopsis

kill [ -s signame ] job ...

kill [ -n signum ] job ...

kill [ -sig ] job ...

kill -l [ signal ... ]

Description

You can use kill to send a signal to the specified jobs. You can specify a signal using:

Note: The valid signal numbers on i5/OS(TM) may be different than the signal numbers on other systems. You can list the valid signal names by specifying the -l option. For portability, you should always specify the signal name.

Options

-l
List signal names. If there are no arguments, qsh displays all of the signal names. If signal is a name, qsh displays the corresponding signal number. If signal is a number, qsh displays the corresponding signal name.
-n
A signal number.
-s
A signal name in either uppercase or lowercase.

Operands

Each job specifies an active job. The job can be specified as a:

Exit Status

Related information

Examples
  1. Send the USR1 signal to process id 16711: kill -s USR1 16711
  2. Send the USR1 signal to job 1: kill -n 7 %1
  3. List the valid signal names: kill -l