1QSIG(P) POSIX Programmer's Manual QSIG(P)
2
3
4
6 qsig - signal batch jobs
7
9 qsig [-s signal] job_identifier ...
10
12 To signal a batch job is to send a signal to the session leader of the
13 batch job. A batch job is signaled by sending a request to the batch
14 server that manages the batch job. The qsig utility is a user-accessi‐
15 ble batch client that requests the signaling of a batch job.
16
17 The qsig utility shall signal those batch jobs for which a batch
18 job_identifier is presented to the utility. The qsig utility shall not
19 signal any batch jobs whose batch job_identifiers are not presented to
20 the utility.
21
22 The qsig utility shall signal batch jobs in the order in which the cor‐
23 responding batch job_identifiers are presented to the utility. If the
24 qsig utility fails to process a batch job_identifier successfully, the
25 utility shall proceed to process the remaining batch job_identifiers,
26 if any.
27
28 The qsig utility shall signal batch jobs by sending a Signal Job
29 Request to the batch server that manages the batch job.
30
31 For each successfully processed batch job_identifier, the qsig utility
32 shall have received a completion reply to each Signal Job Request sent
33 to a batch server at the time the utility exits.
34
36 The qsig utility shall conform to the Base Definitions volume of
37 IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.
38
39 The following option shall be supported by the implementation:
40
41 -s signal
42 Define the signal to be sent to the batch job.
43
44 The qsig utility shall accept a signal option-argument that is either a
45 symbolic signal name or an unsigned integer signal number (see the
46 POSIX.1-1990 standard, Section 3.3.1.1). The qsig utility shall accept
47 signal names for which the SIG prefix has been omitted.
48
49 If the signal option-argument is a signal name, the qsig utility shall
50 send that name.
51
52 If the signal option-argument is a number, the qsig utility shall send
53 the signal value represented by the number.
54
55 If the -s option is not presented to the qsig utility, the utility
56 shall send the signal SIGTERM to each signaled batch job.
57
58
60 The qsig utility shall accept one or more operands that conform to the
61 syntax for a batch job_identifier (see Batch Job Identifier ).
62
64 Not used.
65
67 None.
68
70 The following environment variables shall affect the execution of qsig:
71
72 LANG Provide a default value for the internationalization variables
73 that are unset or null. (See the Base Definitions volume of
74 IEEE Std 1003.1-2001, Section 8.2, Internationalization Vari‐
75 ables for the precedence of internationalization variables used
76 to determine the values of locale categories.)
77
78 LC_ALL If set to a non-empty string value, override the values of all
79 the other internationalization variables.
80
81 LC_CTYPE
82 Determine the locale for the interpretation of sequences of
83 bytes of text data as characters (for example, single-byte as
84 opposed to multi-byte characters in arguments).
85
86 LC_MESSAGES
87 Determine the locale that should be used to affect the format
88 and contents of diagnostic messages written to standard error.
89
90 LOGNAME
91 Determine the login name of the user.
92
93
95 Default.
96
98 An implementation of the qsig utility may write informative messages to
99 standard output.
100
102 The standard error shall be used only for diagnostic messages.
103
105 None.
106
108 None.
109
111 The following exit values shall be returned:
112
113 0 Successful completion.
114
115 >0 An error occurred.
116
117
119 In addition to the default behavior, the qsig utility shall not be
120 required to write a diagnostic message to standard error when the error
121 reply received from a batch server indicates that the batch job_identi‐
122 fier does not exist on the server. Whether or not the qsig utility
123 waits to output the diagnostic message while attempting to locate the
124 batch job on other servers is implementation-defined.
125
126 The following sections are informative.
127
129 None.
130
132 None.
133
135 The qsig utility allows users to signal batch jobs.
136
137 A user may be unable to signal a batch job with the kill utility of the
138 operating system for a number of reasons. First, the process ID of the
139 batch job may be unknown to the user. Second, the processes of the
140 batch job may be on a remote node. However, by virtue of communication
141 between batch nodes, the qsig utility can arrange for the signaling of
142 a process.
143
144 Because a batch job that is not running cannot be signaled, and because
145 the signal may not terminate the batch job, the qsig utility is not a
146 substitute for the qdel utility.
147
148 The options of the qsig utility allow the user to specify the signal
149 that is to be sent to the batch job.
150
151 The -s option allows users to specify a signal by name or by number,
152 and thus override the default signal. The POSIX.1-1990 standard defines
153 signals by both name and number.
154
155 The qsig utility is a new utility, vis-a-vis existing practice; it has
156 been defined in this volume of IEEE Std 1003.1-2001 in response to
157 user-perceived shortcomings in existing practice.
158
160 None.
161
163 Batch Environment Services , kill() , qdel
164
166 Portions of this text are reprinted and reproduced in electronic form
167 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
168 -- Portable Operating System Interface (POSIX), The Open Group Base
169 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
170 Electrical and Electronics Engineers, Inc and The Open Group. In the
171 event of any discrepancy between this version and the original IEEE and
172 The Open Group Standard, the original IEEE and The Open Group Standard
173 is the referee document. The original Standard can be obtained online
174 at http://www.opengroup.org/unix/online.html .
175
176
177
178IEEE/The Open Group 2003 QSIG(P)