16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Description<br />

Options<br />

kill ends a process by sending it a signal. The default signal is SIGTERM.<br />

kill in the tcsh shell<br />

In the tcsh shell, kill [-signal] %job|pid ... sends the specified signal (or if none is<br />

given, the TERM (terminate) signal) to the specified jobs or processes. job may be<br />

a number, a string, ’’, %, + or - . Signals are either given by number or by name.<br />

When using the tcsh kill command, do not use the first three characters (SIG) of<br />

the signal_name. Enter the signal_name with uppercase characters. For example, if<br />

you want to send the SIGTERM signal, you would enter kill -TERM pid not kill<br />

-SIGTERM pid.<br />

There is no default job. Specifying kill alone does not send a signal to the current<br />

job. If the signal being sent is TERM or HUP (hangup), then the job or process is<br />

sent a CONT (continue) signal as well.<br />

kill -l lists the signal names. See “tcsh — Invoke a C shell” on page 626.<br />

The signal_numbers and signal_names described in “Options” are also used with<br />

the tcsh kill command.<br />

–K Sends a superkill signal to force the ending of a process or job that did not<br />

end as a result of a prior KILL signal. The process is ended with a<br />

non-retryable abend. The regular KILL signal must have been sent at least<br />

3 seconds before the superkill signal is sent. The superkill signal cannot be<br />

sent to a process group (by using pid of 0 or a negative number) or to all<br />

processes (by using a pid of -1).<br />

–l Displays the names of all supported signals. If you specify exit_status, and<br />

it is the exit code of a ended process, kill displays the ending signal of that<br />

process.<br />

–s signal_name<br />

Sends the signal signal_name to the process instead of the SIGTERM<br />

signal. When using the kill command, do not use the first three characters<br />

(SIG) of the signal_name. Enter the signal_name with uppercase<br />

characters. For example, if you want to send the SIGABRT signal, enter:<br />

kill –s ABRT pid<br />

–signal_name<br />

(Obsolete.) Same as –s signal_name.<br />

–signal_number<br />

(Obsolete.) A non-negative integer representing the signal to be sent to the<br />

process, instead of SIGTERM.<br />

The signal_number represents the signal_name shown below:<br />

signal_number<br />

signal_name<br />

0 SIGNULL<br />

1 SIGHUP<br />

2 SIGINT<br />

3 SIGQUIT<br />

4 SIGILL<br />

5 SIGPOLL<br />

6 SIGABRT<br />

kill<br />

Chapter 2. Shell command descriptions 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!