1QSIG(1P)                   POSIX Programmer's Manual                  QSIG(1P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       qsig — signal batch jobs
14

SYNOPSIS

16       qsig [−s signal] job_identifier...
17

DESCRIPTION

19       To signal a batch job is to send a signal to the session leader of  the
20       batch  job.  A  batch job is signaled by sending a request to the batch
21       server that manages the batch job. The qsig utility is a  user-accessi‐
22       ble batch client that requests the signaling of a batch job.
23
24       The  qsig  utility  shall  signal  those  batch  jobs for which a batch
25       job_identifier is presented to the utility. The qsig utility shall  not
26       signal  any batch jobs whose batch job_identifiers are not presented to
27       the utility.
28
29       The qsig utility shall signal batch jobs in the order in which the cor‐
30       responding  batch  job_identifiers are presented to the utility. If the
31       qsig utility fails to process a batch job_identifier successfully,  the
32       utility  shall  proceed to process the remaining batch job_identifiers,
33       if any.
34
35       The qsig utility shall signal  batch  jobs  by  sending  a  Signal  Job
36       Request to the batch server that manages the batch job.
37
38       For  each successfully processed batch job_identifier, the qsig utility
39       shall have received a completion reply to each Signal Job Request  sent
40       to a batch server at the time the utility exits.
41

OPTIONS

43       The  qsig  utility  shall  conform  to  the  Base Definitions volume of
44       POSIX.1‐2008, Section 12.2, Utility Syntax Guidelines.
45
46       The following option shall be supported by the implementation:
47
48       −s signal Define the signal to be sent to the batch job.
49
50                 The qsig utility shall accept a signal  option-argument  that
51                 is  either a symbolic signal name or an unsigned integer sig‐
52                 nal number (see the POSIX.1‐1990 standard, Section  3.3.1.1).
53                 The  qsig utility shall accept signal names for which the SIG
54                 prefix has been omitted.
55
56                 If the signal option-argument is  a  signal  name,  the  qsig
57                 utility shall send that name.
58
59                 If  the  signal option-argument is a number, the qsig utility
60                 shall send the signal value represented by the number.
61
62                 If the −s option is not presented to the  qsig  utility,  the
63                 utility  shall send the signal SIGTERM to each signaled batch
64                 job.
65

OPERANDS

67       The qsig utility shall accept one or more operands that conform to  the
68       syntax for a batch job_identifier (see Section 3.3.1, Batch Job Identi‐
69       fier).
70

STDIN

72       Not used.
73

INPUT FILES

75       None.
76

ENVIRONMENT VARIABLES

78       The following environment variables shall affect the execution of qsig:
79
80       LANG      Provide a default value for  the  internationalization  vari‐
81                 ables  that are unset or null. (See the Base Definitions vol‐
82                 ume of POSIX.1‐2008, Section 8.2, Internationalization  Vari‐
83                 ables  the  precedence of internationalization variables used
84                 to determine the values of locale categories.)
85
86       LC_ALL    If set to a non-empty string value, override  the  values  of
87                 all the other internationalization variables.
88
89       LC_CTYPE  Determine  the  locale for the interpretation of sequences of
90                 bytes of text data as characters (for example, single-byte as
91                 opposed to multi-byte characters in arguments).
92
93       LC_MESSAGES
94                 Determine the locale that should be used to affect the format
95                 and contents  of  diagnostic  messages  written  to  standard
96                 error.
97
98       LOGNAME   Determine the login name of the user.
99

ASYNCHRONOUS EVENTS

101       Default.
102

STDOUT

104       An implementation of the qsig utility may write informative messages to
105       standard output.
106

STDERR

108       The standard error shall be used only for diagnostic messages.
109

OUTPUT FILES

111       None.
112

EXTENDED DESCRIPTION

114       None.
115

EXIT STATUS

117       The following exit values shall be returned:
118
119        0    Successful completion.
120
121       >0    An error occurred.
122

CONSEQUENCES OF ERRORS

124       In addition to the default behavior, the  qsig  utility  shall  not  be
125       required to write a diagnostic message to standard error when the error
126       reply received from a batch server indicates that the batch job_identi‐
127       fier  does  not  exist  on  the server. Whether or not the qsig utility
128       waits to output the diagnostic message while attempting to  locate  the
129       batch job on other servers is implementation-defined.
130
131       The following sections are informative.
132

APPLICATION USAGE

134       None.
135

EXAMPLES

137       None.
138

RATIONALE

140       The qsig utility allows users to signal batch jobs.
141
142       A user may be unable to signal a batch job with the kill utility of the
143       operating system for a number of reasons. First, the process ID of  the
144       batch  job  may  be  unknown  to the user. Second, the processes of the
145       batch job may be on a remote node. However, by virtue of  communication
146       between  batch nodes, the qsig utility can arrange for the signaling of
147       a process.
148
149       Because a batch job that is not running cannot be signaled, and because
150       the  signal  may not terminate the batch job, the qsig utility is not a
151       substitute for the qdel utility.
152
153       The options of the qsig utility allow the user to  specify  the  signal
154       that is to be sent to the batch job.
155
156       The  −s  option  allows users to specify a signal by name or by number,
157       and thus override the default signal. The POSIX.1‐1990 standard defines
158       signals by both name and number.
159
160       The  qsig utility is a new utility, vis-a-vis existing practice; it has
161       been defined in this volume of POSIX.1‐2008 in  response  to  user-per‐
162       ceived shortcomings in existing practice.
163

FUTURE DIRECTIONS

165       The qsig utility may be removed in a future version.
166

SEE ALSO

168       Chapter 3, Batch Environment Services, kill, qdel
169
170       The  Base  Definitions  volume  of POSIX.1‐2008, Chapter 8, Environment
171       Variables, Section 12.2, Utility Syntax Guidelines
172
174       Portions of this text are reprinted and reproduced in  electronic  form
175       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
176       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
177       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
178       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
179       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
180       event of any discrepancy between this version and the original IEEE and
181       The  Open Group Standard, the original IEEE and The Open Group Standard
182       is the referee document. The original Standard can be  obtained  online
183       at http://www.unix.org/online.html .
184
185       Any  typographical  or  formatting  errors that appear in this page are
186       most likely to have been introduced during the conversion of the source
187       files  to  man page format. To report such errors, see https://www.ker
188       nel.org/doc/man-pages/reporting_bugs.html .
189
190
191
192IEEE/The Open Group                  2013                             QSIG(1P)
Impressum