6.2.17 Displaying signal information (info signals command)
The info signals command displays signal information. The abbreviation for the info signals command is I si. The following shows the format of the info signals command:
info signals[ signal-name| signal-number]
When a signal name or signal number is specified in the argument, the command displays information about the corresponding signal. If the argument is not specified, the command displays information about all signals. The following shows the display format:
Num Signal Stop Print signal-number signal-name Yes/No Yes/No ...
-
signal-number: Number of a signal. The command displays the signal numbers in ascending order. A maximum of two digits can be displayed left-justified.
-
signal-name: The signal's name. A maximum of 11 bytes can be displayed left-justified.
The following describes the info signals command's processing.
- When the info signals command argument is omitted
-
The command displays information about all signals.
- When the info signals command argument is specified
-
-
signal-number
If the specified signal number exists, the command displays information about the signal with the specified signal number.
If a nonexistent signal number is specified, the command outputs an error message.
-
signal-name
If the specified signal name exists, the command displays information about the specified signal.
If a nonexistent signal name is specified, the command outputs an error message.
-
Stop
Yes: Indicates that when the signal indicated by Signal is received, the command stops the job definition script that is running.
No: Indicates that the command does not stop the job definition script that is running when the signal indicated by Signal is received.
For details about the processing when signals are received, see 3.10.2 Processing when signals are received (UNIX only).
-
Print
Yes: Indicates that when the signal indicated by Signal is received, the command displays a signal received message.
No: Indicates that the command does not display a signal received message when the signal shown indicated by Signal is received.
-
- Notes:
-
-
A number that is specified in the argument must be 0 or a greater integer. Do not specify a plus sign (+) at the beginning. If any other value is entered, the command outputs an error message.
-
If the specified number is outside the permitted value range for the int type, the command rounds it to the maximum value for the int type.
-
- Example of output
-
This example displays signal information:
Num Signal Stop Print 1 SIGHUP No No 2 SIGINT Yes Yes