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