qdel.1B 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH qdel 1B "30 November 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B qdel
  39. - delete PBS jobs
  40. .SH SYNOPSIS
  41. .B qdel
  42. [ -Wforce | -Wsuppress_email=<N>] [-x] <job ID> [<job ID> ...]
  43. .br
  44. .B qdel
  45. --version
  46. .SH DESCRIPTION
  47. The
  48. .B qdel
  49. command deletes jobs in the order given, whether they are at the local
  50. server or at a remote server.
  51. .B Usage
  52. .br
  53. The qdel command is used without options to delete queued, running,
  54. held, or suspended jobs, while the
  55. .I -x
  56. option gives it the additional capacity to delete finished or moved
  57. jobs. With the
  58. .I -x
  59. option, this command can be used on finished and moved jobs, in
  60. addition to queued, running, held, or suspended jobs.
  61. When this command is used without the
  62. .I -x
  63. option, if job history is enabled, the deleted job's history is
  64. retained. The
  65. .I -x
  66. option is used to additionally remove the history of the job being
  67. deleted.
  68. If someone other than the job's owner deletes the job, mail is
  69. sent to the job's owner, or to a list of mail recipients if
  70. specified during
  71. .B qsub.
  72. See the
  73. .B qsub(1B)
  74. man page.
  75. If the job is in the process of provisioning,
  76. it can be deleted only by using the
  77. .I -W force
  78. option.
  79. .B "How Behavior of qdel Command Can Be Affected"
  80. .br
  81. The server's
  82. .I default_qdel_arguments
  83. attribute may affect the behavior of the
  84. .B qdel
  85. command. This attribute is settable by the administrator
  86. via the
  87. .B qmgr
  88. command. The attribute may be set to "-Wsuppress_email=<N>".
  89. The server attribute is overridden by command-line arguments.
  90. See the
  91. .B pbs_server_attributes(1B)
  92. man page.
  93. .B Sequence of Events
  94. .IP " " 3
  95. The job's running processes are killed.
  96. .IP
  97. The epilogue runs.
  98. .IP
  99. Files that were staged in are staged out. This includes
  100. standard out (.o) and standard error (.e) files.
  101. .IP
  102. Files that were staged in or out are deleted.
  103. .IP
  104. The job's temp directory is removed.
  105. .IP
  106. The job is removed from the MOM(s) and the server.
  107. .LP
  108. .B Required Privilege
  109. .br
  110. A PBS job may be deleted by its owner, an Operator, or the
  111. administrator. The server deletes a PBS job by sending a
  112. .B SIGTERM
  113. signal, then, if there are remaining processes, a
  114. .B SIGKILL
  115. signal.
  116. .SH OPTIONS
  117. .IP "(no options)" 8
  118. Can delete queued, running, held, or suspended jobs.
  119. Does not delete job history for specified job(s).
  120. .IP "-W force" 8
  121. Deletes the job whether or not the job's execution host is
  122. reachable. Deletes the job whether or not the job is in the
  123. process of provisioning. Cannot be used with the
  124. .I -Wsuppress_email
  125. option.
  126. If the server can contact the MoM, this option is ignored; the
  127. server allows the job to be deleted normally. If the server
  128. cannot contact the MoM or the job is in the
  129. .I E
  130. state, the server deletes its information about the job.
  131. .IP "-Wsuppress_email=<N>" 8
  132. Sets limit on number of emails sent when deleting multiple jobs.
  133. .RS 11
  134. If
  135. .I N
  136. >= 1 and
  137. .I N
  138. or more
  139. .I job IDs
  140. are given,
  141. .I N
  142. emails are sent.
  143. .br
  144. If
  145. .I N
  146. >=1 and less than
  147. .I N job IDs
  148. are given, the number of emails is
  149. the same as the number of jobs.
  150. .br
  151. If
  152. .I N
  153. = 0, this option is ignored.
  154. .br
  155. If
  156. .I N
  157. = -1, no email is sent.
  158. .RE
  159. .LP
  160. .IP " " 8
  161. The
  162. .I <N>
  163. argument is an integer. Note that there is no space between "W" and "suppress_email".
  164. Cannot be used with the
  165. .I -Wforce
  166. option.
  167. .LP
  168. .IP "-x" 8
  169. Can delete running, queued, suspended, held, finished, or moved jobs.
  170. Deletes job history for specified job(s).
  171. .LP
  172. .IP "--version" 8
  173. The
  174. .B qdel
  175. command returns its PBS version information and exits.
  176. This option can only be used alone.
  177. .SH OPERANDS
  178. The
  179. .B qdel
  180. command accepts one or more space-separated
  181. .I job ID
  182. operands. These operands can be job identifiers, job array
  183. identifiers, subjob dentifiers, or subjob range identifiers.
  184. Job IDs have the form:
  185. .br
  186. .I \ \ \ <sequence number>[.<server name>][@<server name>]
  187. Job arrays have the form:
  188. .br
  189. .I \ \ \ <sequence number>[][.<server name>][@<server name>]
  190. Subjobs have the form:
  191. .br
  192. .I \ \ \ <sequence number>[<index>][.<server name>][@<server name>]
  193. Ranges of subjobs have the form:
  194. .br
  195. .I \ \ \ <sequence number>[<first>-<last>][.<server name>][@<server name>]
  196. Job array identifiers must be enclosed in double quotes for some shells.
  197. .SH STANDARD ERROR
  198. The
  199. .B qdel
  200. command writes a diagnostic message to standard error for each
  201. error occurrence.
  202. .SH EXIT STATUS
  203. .IP Zero 8
  204. Upon successful processing of input
  205. .IP "Greater than zero" 8
  206. Upon error
  207. .SH SEE ALSO
  208. The
  209. .I PBS Professional User's Guide,
  210. the
  211. .I PBS Professional Administrator's Guide,
  212. .br
  213. pbs_queue_attributes(7B), pbs_server_attributes(1B),
  214. qsub(1B), qsig(1B), pbs_deljob(3B)