qsub.1B 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632
  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 qsub 1B "2 February 2016" Local "PBS Professional"
  37. .SH NAME
  38. .B qsub
  39. \- submit PBS job
  40. .SH SYNOPSIS
  41. .B qsub
  42. [-a date_time] [-A account_string] [-c interval]
  43. .RS 5
  44. [-C directive_prefix] [-e path] [-f] [-h]
  45. .br
  46. [-I [-G [-- <GUI application>]] | [-X]] [-j join]
  47. [-J range] [-k keep] [-l resource_list] [-m mail_events]
  48. [-M user_list] [-N name] [-o path] [-p priority] [-P project]
  49. [-q destination] [-r c] [-R remove] [-S path_list] [-u user_list]
  50. [-v variable_list] [-V] [-W additional_attributes]
  51. [-z] [script | -- executable [arglist for executable]]
  52. .RE
  53. .B qsub
  54. --version
  55. .SH DESCRIPTION
  56. The
  57. .B qsub
  58. command is used to submit a batch job to PBS.
  59. Submitting a PBS job specifies a task, requests resources and sets job attributes.
  60. The
  61. .B qsub
  62. command can read from a job script, from standard input, or from the command line.
  63. When the user has submitted the job, PBS returns the job identifier for that job.
  64. For a job, this is of the form:
  65. .IP
  66. .I sequence_number.servername
  67. .LP
  68. For an array job, this is of the form:
  69. .IP
  70. .I sequence_number[].servername
  71. .LP
  72. During execution, jobs can be interactive or non-interactive.
  73. By default, on the first invocation, qsub spawns a background process
  74. to manage communication with the PBS server. Later invocations of
  75. qsub attempt to communicate with this background process. Under
  76. certain circumstances, calls to qsub when it uses the background
  77. process can result in communication problems. You can prevent qsub
  78. from spawning a background process by using the -f option, although
  79. this can degrade performance.
  80. .B Where PBS puts job files
  81. .br
  82. By default, PBS copies the stdout and stderr files from the job back to the
  83. current working directory where the
  84. .B qsub
  85. command is executed. See the
  86. .I -o
  87. and
  88. .I -e
  89. options.
  90. .B Submitting jobs by using scripts
  91. .br
  92. To submit a PBS job script, the user types
  93. .IP
  94. .B qsub
  95. [options] scriptname
  96. .LP
  97. Scripts can be written in Python, UNIX shells such as csh and sh,
  98. Perl, Windows command language, etc. The same Python script can be
  99. used on both UNIX/Linux and Windows.
  100. .br
  101. A PBS job script consists of
  102. .IP
  103. Optional shell specification
  104. .br
  105. Any
  106. .I PBS directives
  107. .br
  108. The user's tasks: programs, commands or applications
  109. .LP
  110. Example of using Python for UNIX/Linux or Windows:
  111. .br
  112. The Python job script named "myjob.py" for a job named
  113. "HelloJob" prints "Hello" under UNIX/Linux or Windows:
  114. .IP
  115. #!/usr/bin/python
  116. .br
  117. #PBS -l select=1:ncpus=3:mem=1gb
  118. .br
  119. #PBS -N HelloJob
  120. .br
  121. print "Hello"
  122. .LP
  123. To run a Python job script under UNIX/Linux:
  124. .IP
  125. qsub <script name>
  126. .LP
  127. To run a Python job script under Windows:
  128. .IP
  129. qsub -S \%PBS_EXEC\%\\bin\\pbs_python.exe <script name>
  130. .LP
  131. If the path contains spaces, it must be quoted, for example:
  132. .IP
  133. qsub -S "C:\Program Files\\PBS Pro\\bin\\pbs_python.exe" <script name>
  134. .LP
  135. Example of a UNIX/LInux job script named "weatherscript" for a job
  136. named "Weather1" which runs the executable "weathersim":
  137. .br
  138. .IP
  139. #!/bin/sh
  140. .br
  141. #PBS -N Weather1
  142. .br
  143. #PBS -l walltime=1:00:00
  144. .br
  145. /usr/local/weathersim
  146. .LP
  147. To submit the job, the user types:
  148. .IP
  149. .B qsub
  150. weatherscript <return>
  151. .LP
  152. Example of a Windows job script:
  153. .br
  154. Example of a script named "weather.exe" for a job named "Weather1" run under Windows:
  155. .IP
  156. #PBS -N Weather1
  157. .br
  158. #PBS -l walltime=1:00:00
  159. .br
  160. weathersim.exe
  161. .LP
  162. To submit the job, the user types:
  163. .IP
  164. .B qsub
  165. weather.exe <return>
  166. .LP
  167. Scripts can contain comments. Under Windows, comments can contain
  168. only ASCII characters. See the
  169. .B PBS Professional User's Guide.
  170. .B Python Job Scripts
  171. .br
  172. PBS allows you to submit jobs using a Python script. You can use the
  173. same Python script under Windows or UNIX/Linux. PBS includes a Python
  174. package, allowing Python job scripts to run; you do not need to
  175. install Python.
  176. You can include PBS directives in a Python job script as you would in
  177. a UNIX shell script. For example:
  178. .IP
  179. cat myjob.py
  180. .br
  181. #!/usr/bin/python
  182. .br
  183. #PBS -l select=1:ncpus=3:mem=1gb
  184. .br
  185. #PBS -N HelloJob
  186. .br
  187. print "Hello"
  188. .LP
  189. Python job scripts can access Win32 APIs, including the following modules:
  190. .IP
  191. Win32api
  192. .br
  193. Win32con
  194. .br
  195. Pywintypes
  196. .LP
  197. .B UNIX/Linux Shell Scripts
  198. .br
  199. The first line of a job file can be used to
  200. specify which shell to use to execute the script. The default shell is
  201. the user's login shell. If the default is not acceptable, you can
  202. specify a different shell on the first line.
  203. .B Windows Command Scripts
  204. .br
  205. In Windows, if you use notepad to create a job script, the last line
  206. does not automatically get newline-terminated. Be sure to put one
  207. explicitly, otherwise, PBS job will get the following error message:
  208. .IP
  209. More?
  210. .LP
  211. when the Windows command interpreter tries to execute that last line.
  212. .B Specifying Top Shell
  213. .br
  214. You can specify the top shell for the job:
  215. .IP
  216. qsub -S <path to shell> <script name>
  217. .LP
  218. Under UNIX/Linux, you cannot use this option to specify the path
  219. to a Python interpreter.
  220. .B Submitting jobs from standard input
  221. .br
  222. To submit a PBS job by typing job specifications at the command line, the user types
  223. .IP
  224. .B qsub
  225. [options] <return>
  226. .LP
  227. then types any directives, then any tasks, followed by
  228. .IP
  229. (in UNIX) CTRL-D on a line by itself
  230. .br
  231. (in Windows) CTRL-Z <return>
  232. .LP
  233. to terminate the input.
  234. .B Submitting a job from the
  235. .B qsub command line
  236. .br
  237. To submit a job from the command line, the user types
  238. .IP
  239. .B qsub
  240. [options]
  241. .B -- executable
  242. [arguments to executable] <return>
  243. .LP
  244. For example, to run myprog with the arguments a and b:
  245. .IP
  246. .B qsub
  247. -- myprog a b <return>
  248. .LP
  249. To run myprog with the arguments a and b, naming the job JobA,
  250. .IP
  251. .B qsub
  252. -N JobA
  253. -- myprog a b <return>
  254. .LP
  255. .B Requesting resources and placing jobs
  256. .br
  257. Requesting resources includes setting limits
  258. on resource usage and controlling how the job is placed on nodes.
  259. Resources are requested by using the
  260. .I -l
  261. option, either in
  262. .I chunks
  263. inside of
  264. .I selection statements,
  265. or in job-wide requests using
  266. .I resource_name=value
  267. pairs. See the
  268. .B pbs_resources(7B)
  269. man page.
  270. The
  271. .I selection statement
  272. is of the form:
  273. .IP
  274. .I -l select=[N:]chunk[+[N:]chunk ...]
  275. .LP
  276. where
  277. .I N
  278. specifies how many of that chunk, and
  279. a
  280. .I chunk
  281. is of the form:
  282. .IP
  283. .I resource_name=value[:resource_name=value ...]
  284. .LP
  285. Job-wide
  286. .I resource_name=value
  287. requests are of the form:
  288. .IP
  289. .I -l resource_name=value[,resource_name=value ...]
  290. .LP
  291. The
  292. .I place
  293. statement can contain the following elements, in any order:
  294. .IP " " 5
  295. -l place=[
  296. .I arrangement
  297. ][:
  298. .I sharing
  299. ][:
  300. .I grouping]
  301. .LP
  302. where
  303. .IP " " 5
  304. .I arrangement
  305. is one of
  306. .I free
  307. |
  308. .I pack
  309. |
  310. .I scatter
  311. |
  312. .I vscatter
  313. .br
  314. .I sharing
  315. is one of
  316. .I excl
  317. |
  318. .I shared
  319. |
  320. .I exclhost
  321. .br
  322. .I grouping
  323. can have only one instance of
  324. .I group=resource
  325. .LP
  326. and where
  327. .IP " " 5
  328. .I free:
  329. Place job on any vnode(s).
  330. .br
  331. .I pack:
  332. All chunks will be taken from one host.
  333. .br
  334. .I scatter:
  335. Only one chunk with any MPI processes will be taken from a host.
  336. A chunk with no MPI processes may be taken from the same node as
  337. another chunk.
  338. .br
  339. .I vscatter:
  340. Only one chunk is taken from any vnode.
  341. .br
  342. .I excl:
  343. Only this job uses the vnodes chosen.
  344. .br
  345. .I exclhost:
  346. The entire host is allocated to the job.
  347. .br
  348. .I shared:
  349. This job can share the vnodes chosen.
  350. .br
  351. .I group=resource:
  352. Chunks will be grouped according to a
  353. .I resource.
  354. This resource must be a string or string array.
  355. All nodes in the group must have a common value for the
  356. .I resource,
  357. which can be either the built-in resource
  358. .I host
  359. or a site-defined node-level resource.
  360. The place statement cannot begin with a colon.
  361. Note that nodes can have sharing attributes that override
  362. job placement requests. See the
  363. .B pbs_node_attributes(7B)
  364. man page.
  365. .LP
  366. .B Do not mix old style resource or node specifications with the new select and place statements.
  367. Do not use one in a job script and the other on the command line.
  368. Mixing the two will result in an error.
  369. You cannot submit a job requesting a custom resource which has
  370. been created to be invisible or read-only for users, regardless of
  371. your privilege. A manager or operator can use the
  372. .B qalter
  373. command to change a job's request for this kind of custom resource.
  374. For more on resource requests, usage limits and job placement, see
  375. .B pbs_resources(7B).
  376. .B Setting attributes
  377. .br
  378. The user sets job attributes by giving options to the
  379. .B qsub
  380. command and by using
  381. .I PBS directives.
  382. Each
  383. .B qsub
  384. option except
  385. .I -C, -q,
  386. and
  387. .I -z
  388. sets a job attribute, and has a corresponding
  389. .I PBS directive
  390. with the same syntax as the option.
  391. Attributes set via command-line options take precedence over those
  392. set using
  393. .I PBS directives.
  394. See the
  395. .B PBS Professional User's Guide, pbs_job_attributes(7B).
  396. The behavior of the
  397. .B qsub
  398. command
  399. may be affected by
  400. the server's
  401. .I default_qsub_arguments
  402. attribute.
  403. This attribute can set the default for any job attribute.
  404. The
  405. .I default_qsub_arguments
  406. server attribute is settable by the administrator,
  407. and is overridden by command-line arguments and
  408. script directives.
  409. See the
  410. .B pbs_server_attributes(1B)
  411. man page.
  412. The behavior of the
  413. .B qsub
  414. command may also be affected by
  415. any site hooks. Site hooks can modify the job's attributes,
  416. change its routing, etc.
  417. .SH OPTIONS
  418. .IP "-a date_time" 8
  419. Point in time after which the job is eligible for execution.
  420. Given in pairs of digits. Sets job's
  421. .I Execution_Time
  422. attribute to
  423. .I date_time.
  424. Format:
  425. .IP
  426. .RS 13
  427. .I "[[[[CC]YY]MM]DD]hhmm[.SS]"
  428. .RE
  429. .IP
  430. where CC is the century,
  431. YY is the year,
  432. MM is the month,
  433. DD is the day of the month,
  434. hh is the hour, mm is the minute,
  435. and SS is the seconds.
  436. Each portion of the date defaults to the current date, as long as the
  437. next-smaller portion is in the future. For example, if today is the
  438. 3rd of the month and the specified day
  439. .I DD
  440. is the 5th, the month
  441. .I MM
  442. is set to the current month.
  443. If a specified portion has already passed, the next-larger portion is set
  444. to one after the current date. For example, if the day
  445. .I DD
  446. is not specified, but the hour
  447. .I hh
  448. is specified to be 10:00 a.m. and the current time is 11:00 a.m.,
  449. the day
  450. .I DD
  451. is set to tomorrow.
  452. .IP "-A account_string" 8
  453. Accounting string associated with the job. Used for labeling accounting data.
  454. Sets job's
  455. .I Account_Name
  456. attribute to
  457. .I account_string.
  458. Format: string.
  459. .IP "-c checkpoint_spec"
  460. Determines when the job will be checkpointed. Sets job's
  461. .I Checkpoint
  462. attribute. An
  463. .I $action
  464. script is required to checkpoint the job. See the
  465. .B pbs_mom(8B)
  466. man page.
  467. .IP
  468. The argument
  469. .I checkpoint_spec
  470. can take on one of the following values:
  471. .RS
  472. .IP c 5
  473. Checkpointing is to be performed according to the interval, measured
  474. in CPU time, set on the execution queue in which the job resides.
  475. If there is no interval set on the queue, the job is not checkpointed.
  476. .IP "c=<minutes of CPU time>" 5
  477. Checkpointing is to be performed at intervals of the specified number
  478. of minutes of CPU time used by the job. This value must be greater
  479. than zero. If the interval specified is less that that set on the
  480. execution queue in which the job resides, the queue's interval is
  481. used.
  482. .br
  483. Format: integer.
  484. .IP w 5
  485. Checkpointing is to be performed according to the interval, measured
  486. in walltime, set on the execution queue in which the job resides.
  487. If there is no interval set on the queue, the job is not checkpointed.
  488. .IP "w=<minutes of walltime>" 5
  489. Checkpointing is to be performed at intervals of the specified number
  490. of minutes of walltime used by the job. This value must be greater
  491. than zero. If the interval specified is less than that set on the
  492. execution queue in which the job resides, the queue's interval is
  493. used.
  494. .br
  495. Format: integer.
  496. .IP n 5
  497. No checkpointing is to be performed.
  498. .IP s 5
  499. Checkpointing is to be performed only when the server is shut down.
  500. .IP u 5
  501. Unset. Defaults to behavior when
  502. .I interval
  503. argument is set to
  504. .I s.
  505. .I
  506. .LP
  507. Default:
  508. .I u.
  509. .br
  510. Format: String.
  511. .RE
  512. .RE
  513. .IP "-C directive_prefix" 8
  514. Defines the prefix identifying a
  515. .I PBS directive.
  516. Default prefix is "#PBS".
  517. .IP
  518. If the
  519. .I directive_prefix
  520. argument is a null string, qsub
  521. does not scan the script file for directives.
  522. Overrides the PBS_DPREFIX environment variable and the default.
  523. Cannot be used as a
  524. .I PBS directive.
  525. .IP "-e path" 8
  526. Path to be used for the job's standard error stream.
  527. Sets job's
  528. .I Error_Path
  529. attribute to
  530. .I path.
  531. The
  532. .I path
  533. argument is of the form:
  534. .RS 13
  535. .I [hostname:]path_name
  536. .RE
  537. .RS
  538. The
  539. .I path
  540. is interpreted as follows:
  541. .IP path_name 5
  542. If
  543. .I path_name
  544. is a relative path, then it is taken to be relative to
  545. the current working directory of the
  546. .B qsub
  547. command, where it is executing
  548. on the current host.
  549. If
  550. .I path_name
  551. is an absolute path, then it is taken to be an absolute path on
  552. the current host where the
  553. .B qsub
  554. command is executing.
  555. .IP hostname:path_name
  556. If
  557. .I path_name
  558. is a relative path, then it is taken to be relative to the user's
  559. home directory on the host named
  560. .I hostname.
  561. If
  562. .I path_name
  563. is an absolute path, then it is the absolute path on the host named
  564. .I hostname.
  565. .LP
  566. If
  567. .I path_name
  568. does not include a filename, the default filename is
  569. .RS
  570. jobid.ER
  571. .RE
  572. If the
  573. .I -e
  574. option is not specified, PBS copies the standard error to the current
  575. working directory where the
  576. .B qsub
  577. command was executed.
  578. The default filename for the standard error stream
  579. is used. It has this form:
  580. .RS
  581. job_name.e<sequence number>
  582. .RE
  583. If you use a UNC path, the hostname is optional. If you use a non-UNC
  584. path, the hostname is required.
  585. This option is overridden by the
  586. .I -k
  587. option.
  588. .RE
  589. .IP "-f" 8
  590. Prevents
  591. .B qsub
  592. from spawning a background process. By default,
  593. .B qsub
  594. spawns a background process to manage communication with the PBS server.
  595. When this option is specified, the
  596. .B qsub
  597. process connects directly to the server and no background process is created.
  598. NOTE: Use of this option will degrade performance of the
  599. .B qsub
  600. command when calls are made in rapid succession.
  601. .IP "-G [-- <GUI application>]" 8
  602. Starts a GUI session. When no application or script is provided,
  603. starts a GUI-enabled interactive shell. When an application or script
  604. is provided, starts the GUI application or script. Use full path to
  605. application or script unless the path is part of the user's
  606. PATH environment variable on the execution host. When submission and
  607. execution hosts are different, uses a remote viewer.
  608. .br
  609. Session is terminated when remote viewer or GUI application is terminated, when interactive shell is terminated, or when job is deleted.
  610. .br
  611. Can only be used with interactive jobs (the -I option).
  612. .br
  613. Available only under Windows.
  614. .IP "-h" 8
  615. Applies a user hold to the job.
  616. Sets the job's
  617. .I Hold_Types
  618. attribute to "u".
  619. .IP "-I" 8
  620. Job is to be run interactively. Sets job's
  621. .I interactive
  622. attribute to TRUE.
  623. The job is queued
  624. and scheduled as any PBS batch job, but when executed, the standard input,
  625. output, and error streams of the job are connected to the
  626. terminal session in which
  627. .B qsub
  628. is running.
  629. If a job script is given, only its directives are processed. When the job
  630. begins execution, all input to the job is taken from the terminal session.
  631. See the
  632. .B PBS Professional User's Guide
  633. for additional information on interactive jobs.
  634. Interactive jobs are not rerunnable.
  635. Job arrays cannot be interactive.
  636. When used with
  637. .I -Wblock=true,
  638. no exit status is returned.
  639. .IP "-j join" 8
  640. Whether and how to join the job's standard error and standard output streams.
  641. Sets job's
  642. .I Join_Path
  643. attribute to
  644. .I join.
  645. Default: not merged.
  646. Possible values of
  647. .I join:
  648. .RS
  649. .IP oe 5
  650. Standard error and standard output are merged into standard output.
  651. .IP eo 5
  652. Standard error and standard output are merged into standard error.
  653. .IP n 5
  654. Standard error and standard output are not merged.
  655. .RE
  656. .IP "-J range" 8
  657. Declares that this job is an array job.
  658. Sets job's
  659. .I array
  660. attribute to TRUE.
  661. The argument
  662. .I range
  663. identifies the integers greater than or equal to zero that are
  664. associated with the subjobs of the array.
  665. .I range
  666. is specified in the form
  667. X-Y[:Z] where X is the first index, Y is the upper bound on the indices and
  668. Z is the stepping factor. For example, 2-7:2 will produce indices of 2, 4, and
  669. 6. If Z is not specified, it is taken to be 1.
  670. .IP "-k keep" 8
  671. .br
  672. "k" specifies whether and which of the standard output and standard error streams
  673. is retained on the execution host. direct_write can be enabled by passing
  674. "d" option (This will override "k" functionality).
  675. Overrides default path names for these streams. Sets the job's
  676. .I Keep_Files
  677. attribute to the
  678. .I keep
  679. .br
  680. Format: Any combination of 'd','o','e' or 'n'. 'n' cannot be used with other options.
  681. .br
  682. Default: n
  683. In the case where output and/or error is retained on the execution host in
  684. a job-specific staging and execution directory created by PBS, these
  685. files are deleted when PBS deletes the directory.
  686. The
  687. .I keep
  688. argument can take on the following values:
  689. .RS
  690. .IP d 5
  691. direct_write option is used to output (stdout/stderr) files to the final destination,
  692. instead of being staged, if the final destination is known to be writable
  693. from the job execution node.
  694. .IP e 5
  695. "k/d" option is applicable to stderr file. The filename is
  696. .RS
  697. .RS 5
  698. job_name.e<sequence number>
  699. .RE
  700. .RE
  701. .IP o 5
  702. "k/d" option is applicable to stdout file. The filename is
  703. .RS
  704. .RS 5
  705. job_name.o<sequence number>
  706. .RE
  707. .RE
  708. .IP n 5
  709. "k/d" option is not applicable.
  710. .RE
  711. .IP "-l resource_list" 8
  712. .RS
  713. Allows the user to request resources and specify job
  714. placement. Sets job's
  715. .I Resource_list
  716. attribute to
  717. .I resource_list.
  718. Requesting a resource places a limit on its usage.
  719. Requesting resources in
  720. .I chunks:
  721. .RS 5
  722. -l select=[N:]chunk[+[N:]chunk ...]
  723. where N specifies how many of that chunk, and a chunk is:
  724. .RS 5
  725. resource_name=value[:resource_name=value ...]
  726. .RE
  727. .RE
  728. Requesting job-wide resources:
  729. .RS 5
  730. -l resource_name=value[,resource_name=value ...]
  731. .RE
  732. Specifying placement of jobs:
  733. .RS 5
  734. -l place=modifier[:modifier]
  735. .RE
  736. where
  737. .I modifier
  738. is any combination of
  739. .I group, excl,
  740. and/or one of
  741. .I free|pack|scatter.
  742. For more on resource requests, usage limits and job placement, see
  743. .B pbs_resources(7B).
  744. .RE
  745. .IP "-m mail_events " 8
  746. The set of conditions under which mail about the job is sent.
  747. Sets job's
  748. .I Mail_Points
  749. attribute to
  750. .I mail_events.
  751. The
  752. .I mail_events
  753. argument can be either "n" or any combination of "a", "b", and "e".
  754. .RS
  755. .IP n 5
  756. No mail will be sent.
  757. .IP
  758. .IP a 5
  759. Mail is sent when the job is aborted by the batch system.
  760. .IP b 5
  761. Mail is sent when the job begins execution.
  762. .IP e 5
  763. Mail is sent when the job terminates.
  764. .IP j 5
  765. Mail is sent also for subjobs of an array job.
  766. Option "j" must be combined with "a", "b", or "e".
  767. .LP
  768. .br
  769. Format: string.
  770. .br
  771. Default value: "a".
  772. .RE
  773. .IP "-M user_list" 8
  774. List of users to whom mail about the job is sent. Sets job's
  775. .I Mail_Users
  776. attribute to
  777. .I user_list.
  778. Default: job owner.
  779. .RS
  780. The
  781. .I user_list
  782. argument is of the form:
  783. .RS 5
  784. .I user[@host][,user[@host],...]
  785. .RE
  786. .RE
  787. .IP "-N name " 8
  788. Sets job's name to
  789. .I name.
  790. Sets job's
  791. .I Job_Name
  792. attribute to
  793. .I name.
  794. Format: string, up to 236 characters in length.
  795. It must consist of an alphabetic or numeric character followed by
  796. printable, non-white-space characters.
  797. .br
  798. Default: if a script is used to submit the job, the job's name is the
  799. name of the script. If no script is used, the job's name is "STDIN".
  800. .IP "-o path" 8
  801. Path to be used for the job's standard output stream.
  802. Sets job's
  803. .I Output_Path
  804. attribute to
  805. .I path.
  806. The
  807. .I path
  808. argument is of the form:
  809. .RS 13
  810. .I [hostname:]path_name
  811. .RE
  812. .RS
  813. The
  814. .I path
  815. is interpreted as follows:
  816. .IP path_name 5
  817. If
  818. .I path_name
  819. is a relative path, then it is taken to be relative to
  820. the current working directory of the command, where it is executing
  821. on the current host. If
  822. .I path_name
  823. is an absolute path, then it is taken to be an absolute path on
  824. the current host where the command is executing.
  825. .IP hostname:path_name
  826. If
  827. .I path_name
  828. is a relative path, then it is taken to be relative to the user's
  829. home directory on the host named
  830. .I hostname.
  831. If
  832. .I path_name
  833. is an absolute path, then it is the absolute path on the host named
  834. .I hostname.
  835. .LP
  836. If
  837. .I path_name
  838. does not include a filename, the default filename is
  839. .RS
  840. jobid.OU
  841. .RE
  842. If the
  843. .I -o
  844. option is not specified, PBS copies the standard output to the current
  845. working directory where the
  846. .B qsub
  847. command was executed. The default filename for the standard output stream
  848. is used. It has this form:
  849. .RS
  850. job_name.o<sequence number>
  851. .RE
  852. If you use a UNC path, the hostname is optional. If you use a non-UNC
  853. path, the hostname is required.
  854. This option is overridden by the
  855. .I -k
  856. option.
  857. .RE
  858. .IP "-p priority" 8
  859. Priority of the job. Format: host-dependent integer.
  860. Default: zero. Range: [-1024, +1023] inclusive. Sets job's
  861. .I Priority
  862. attribute to
  863. .I priority.
  864. .IP "-P project" 8
  865. Specifies a project for the job. Sets job's
  866. .I project
  867. attribute to specified value.
  868. Format: String.
  869. .br
  870. Project name can contain any characters except for the following:
  871. Slash ("/"), left bracket ("["), right bracket ("]"), double quote ("""),
  872. semicolon (";"), colon (":"), vertical bar ("|"), left angle bracket ("<"),
  873. right angle bracket (">"), plus ("+"), comma (","), question mark ("?"),
  874. and asterisk ("*").
  875. .br
  876. Default value: "_pbs_project_default".
  877. .IP "-q destination" 8
  878. Where the job is sent upon submission. Default: default queue at default server.
  879. Specifies a queue, a server, or a queue at a server. The
  880. .I destination
  881. argument can have one of these formats:
  882. .RS
  883. .IP queue 5
  884. Job is submitted to the named queue at the default server.
  885. .IP @server 5
  886. Job is submitted to the default queue at the named server.
  887. .IP queue@server 5
  888. Job is submitted to the named queue at the named server.
  889. .RE
  890. .IP "-r y|n" 8
  891. Declares whether the job is rerunnable. Does not affect how the
  892. job is handled in the case where the job was unable to begin
  893. execution. Sets job's
  894. .I Rerunable
  895. attribute to the argument.
  896. See the
  897. .B qrerun(1B)
  898. command.
  899. .br
  900. Format: single character, "y" or "n".
  901. .br
  902. Default: "y".
  903. .RS
  904. .IP y 5
  905. Job is rerunnable.
  906. .IP n 5
  907. Job is not rerunnable.
  908. .RE
  909. .IP "" 8
  910. Interactive jobs are not rerunnable.
  911. Job arrays are automatically marked as rerunnable.
  912. .IP "-R remove" 8
  913. Declares whether the job stdout/err files should get deleted
  914. if the job completes successfully. Sets job's
  915. .I Remove_Files
  916. attribute to
  917. .I remove
  918. .br
  919. Format: 'o' or 'e' or both of them.
  920. .br
  921. Default: "none". (option will be disabled)
  922. .RS
  923. .IP o 5
  924. Job's stdout file will not be retained if job succeeds.
  925. .IP e 5
  926. Job's stderr file will not be retained if job succeeds.
  927. .RE
  928. .IP "-S path_list" 8
  929. Specifies the interpreter or shell path for the job script. Sets job's
  930. .I Shell_Path_List
  931. attribute to
  932. .I path_list.
  933. Default: user's login shell on execution node.
  934. The
  935. .I path_list
  936. argument is the full path to the interpreter or shell including the
  937. executable name. Format:
  938. .RS
  939. .IP
  940. .I path[@host][,path@host ...]
  941. .LP
  942. Only one path may be specified without a host name.
  943. Only one path may be specified per named host. The path selected
  944. is the one whose host name is that of the server on which the job
  945. resides.
  946. Example of using bash via a directive:
  947. .IP
  948. #PBS -S /bin/bash@mars,/usr/bin/bash@jupiter
  949. .LP
  950. Example of running a Python script from the command line on UNIX/Linux:
  951. .IP
  952. qsub -S $PBS_EXEC/bin/pbs_python <script name>
  953. .LP
  954. Example of running a Python script from the command line on Windows:
  955. .IP
  956. qsub -S \%PBS_EXEC\%\\bin\\pbs_python.exe <script name>
  957. .LP
  958. .RE
  959. .IP
  960. .IP "-u user_list" 8
  961. List of usernames. Job is run under a username from this list.
  962. Sets job's
  963. .I User_List
  964. attribute to
  965. .I user_list.
  966. Default: job owner (username on submit host.) Format of
  967. .I user_list:
  968. .RS
  969. .IP
  970. .I user[@host][,user@host ...]
  971. .LP
  972. Only one username may be specified without a host name.
  973. Only one username may be specified per named host.
  974. The server on which the job resides will select first the username whose
  975. host name is the same as the server name. Failing that,
  976. the next selection will be the username with no specified hostname.
  977. The usernames on the server and execution hosts must be the same.
  978. The job owner must have authorization to run as the specified user.
  979. .RE
  980. .IP "-v variable_list"
  981. Lists environment variables and shell functions to be exported to the job.
  982. This is the list of environment variables which is added to
  983. those already automatically exported. These variables exist in
  984. the user's login environment from which
  985. .B qsub
  986. is run.
  987. The job's
  988. .I Variable_List
  989. attribute is appended with the variables in
  990. .I user_list
  991. and their values.
  992. See
  993. .B ENVIRONMENT
  994. section of this man page.
  995. Format: comma-separated list of strings in the form:
  996. .RS
  997. .IP
  998. .I variable
  999. .LP
  1000. or
  1001. .IP
  1002. .I variable=value
  1003. .LP
  1004. If a
  1005. .I variable=value
  1006. pair contains any commas, the value must be
  1007. enclosed in single or double quotes, and the
  1008. .I variable=value
  1009. pair must be enclosed in the kind of quotes not used to
  1010. enclose the value. For example:
  1011. .RS
  1012. qsub -v "var1='A,B,C,D'" job.sh
  1013. .br
  1014. qsub -v a=10, "var2='A,B'", c=20, HOME=/home/zzz job.sh
  1015. .RE
  1016. Default: no environment variables are added to the job's variable list.
  1017. .RE
  1018. .IP "-V" 8
  1019. Declares that all environment variables and shell functions in the user's
  1020. login environment where
  1021. .B qsub
  1022. is run are to be exported to the job.
  1023. The job's
  1024. .I Variable_List
  1025. attribute is appended with all of these environment variables and
  1026. their values.
  1027. .IP "-W additional_attributes" 8
  1028. The -W option allows specification of any job attribute. Some
  1029. job attributes must be specified using this option. Those attributes
  1030. are listed below.
  1031. Format:
  1032. .RS
  1033. .IP
  1034. .I -W attribute_name=value[,attribute_name=value...]
  1035. .LP
  1036. If white space occurs within the
  1037. .I additional_attributes
  1038. argument, or the equal sign "=" occurs within an
  1039. .I attribute_value
  1040. string, then that must be enclosed with single- or double-quotes.
  1041. PBS supports the following attributes within the -W option:
  1042. .I "depend=dependency_list"
  1043. .IP
  1044. Defines dependencies between this and other jobs.
  1045. Sets the job's
  1046. .I depend
  1047. attribute to
  1048. .I dependency_list.
  1049. The
  1050. .I dependency_list
  1051. has the form:
  1052. .RS
  1053. .RS 5
  1054. .I type:arg_list[,type:arg_list ...]
  1055. .RE
  1056. where except for the
  1057. .I on
  1058. type,
  1059. the
  1060. .I arg_list
  1061. is one or more PBS job IDs in the form:
  1062. .RS 5
  1063. .I jobid[:jobid ...]
  1064. .RE
  1065. The
  1066. .I type
  1067. can be:
  1068. .IP " after: arg_list" 4
  1069. This job may be scheduled for execution at any point after all jobs
  1070. in
  1071. .I arg_list
  1072. have started execution.
  1073. .IP " afterok: arg_list" 4
  1074. This job may be scheduled for execution only after all jobs in
  1075. .I arg_list
  1076. have terminated with no errors.
  1077. See "Warning about exit status with csh" in
  1078. .B EXIT STATUS.
  1079. .IP " afternotok: arg_list" 4
  1080. This job may be scheduled for execution only after all jobs in
  1081. .I arg_list
  1082. have terminated with errors.
  1083. See "Warning about exit status with csh" in
  1084. .B EXIT STATUS.
  1085. .IP "afterany: arg_list" 4
  1086. This job may be scheduled for execution after all jobs in
  1087. .I arg_list
  1088. have finished execution, with any exit status (with or without errors.)
  1089. This job will not run if a job in the
  1090. .I arg_list
  1091. was deleted without ever having been run.
  1092. .IP "before: arg_list " 4
  1093. Jobs in
  1094. .I arg_list
  1095. may begin execution once this job has begun execution.
  1096. .IP "beforeok: arg_list" 4
  1097. Jobs in
  1098. .I arg_list
  1099. may begin execution once this job terminates without errors.
  1100. See "Warning about exit status with csh" in
  1101. .B EXIT STATUS.
  1102. .IP "beforenotok: arg_list" 4
  1103. If this job terminates execution with errors, then jobs in
  1104. .I arg_list
  1105. may begin.
  1106. See "Warning about exit status with csh" in
  1107. .B EXIT STATUS.
  1108. .IP "beforeany: arg_list" 4
  1109. Jobs in
  1110. .I arg_list
  1111. may begin execution once this job terminates execution,
  1112. with or without errors.
  1113. .IP "on: count" 4
  1114. This job may be scheduled for execution after
  1115. .I count
  1116. dependencies on
  1117. other jobs have been satisfied. This type is used in conjunction
  1118. with one of the
  1119. .I before
  1120. types listed.
  1121. Count is an integer greater than 0.
  1122. .LP
  1123. Job IDs in the
  1124. .I arg_list
  1125. of
  1126. .I before
  1127. types must have been submitted with a
  1128. .I type
  1129. of
  1130. .I on.
  1131. To use the
  1132. .I before types,
  1133. the user must have the authority to alter the jobs in
  1134. .I arg_list.
  1135. Otherwise, the dependency is rejected and the new job aborted.
  1136. Error processing of the existence, state, or condition of the job on which the
  1137. newly submitted job is a deferred service, i.e. the check is performed after
  1138. the job is queued. If an error is detected, the new job will be deleted by
  1139. the server. Mail will be sent to the job submitter stating the error.
  1140. Dependency examples:
  1141. .br
  1142. .I "qsub -W depend=afterok:123.host1.domain.com /tmp/script"
  1143. .br
  1144. .I "qsub -W depend=before:234.host1.com:235.host1.com /tmp/script"
  1145. .RE
  1146. .I "group_list=g_list"
  1147. .IP
  1148. List of group names. Job is run under a group name from this list.
  1149. Sets job's
  1150. .I group_List
  1151. attribute to
  1152. .I g_list.
  1153. Default: login group name of job owner. Format of
  1154. .I g_list:
  1155. .RS
  1156. .IP
  1157. .I group[@host][,group@host ...]
  1158. .LP
  1159. Only one group name may be specified without a host name.
  1160. Only one group name may be specified per named host.
  1161. The server on which the job resides will select first the group name whose
  1162. host name is the same as the server name. Failing that,
  1163. the next selection will be the group name with no specified hostname.
  1164. The group names on the server and execution hosts must be the same.
  1165. Job submitter's primary group is automatically added to this
  1166. list.
  1167. .LP
  1168. Under Windows, the primary group is the first group found for
  1169. the user by PBS when it queries the accounts database.
  1170. .RE
  1171. .nf
  1172. .I pwd
  1173. .I pwd=''
  1174. pwd=""
  1175. .fi
  1176. .IP
  1177. These forms prompt the user for a password. A space between
  1178. .I W
  1179. and
  1180. .I pwd
  1181. is optional. Spaces between the quotes are optional.
  1182. Examples:
  1183. .nf
  1184. qsub ... -Wpwd <return>
  1185. qsub ... -W pwd='' <return>
  1186. qsub ... -W pwd=" " <return>
  1187. .fi
  1188. Available on Windows and supported Linux x86 and x86_64 platforms only.
  1189. .LP
  1190. .LP
  1191. .I "block=true"
  1192. .IP
  1193. Specifies that
  1194. .B qsub
  1195. waits for the job to terminate, then returns the job's exit value.
  1196. Sets job's
  1197. .I block
  1198. attribute to TRUE.
  1199. When used with X11 forwarding or interactive jobs, no exit value is returned.
  1200. See
  1201. .B EXIT VALUES
  1202. section.
  1203. .LP
  1204. .I "run_count=<value>"
  1205. .IP
  1206. Sets the number of times the server thinks it has run the job. Sets the value of
  1207. the job's
  1208. .I run_count
  1209. attribute. Job is held when the value of this attribute goes over 20.
  1210. .br
  1211. Format: integer greater than or equal to zero.
  1212. .LP
  1213. .I "sandbox=<value>"
  1214. .IP
  1215. Determines which directory PBS uses for the job's staging and execution. Sets
  1216. job's
  1217. .I sandbox
  1218. attribute to
  1219. .I value.
  1220. If
  1221. .I value
  1222. is
  1223. .I PRIVATE
  1224. , PBS creates a job-specific directory for staging and execution.
  1225. If
  1226. .I value
  1227. is
  1228. .I HOME
  1229. or is unset, PBS uses the user's home directory for staging and execution.
  1230. Sets the job's
  1231. .I sandbox
  1232. attribute to the specified value.
  1233. .LP
  1234. .I "stagein=path_list"
  1235. .br
  1236. .I "stageout=path_list"
  1237. .IP
  1238. Specifies files or directories to be staged-in before execution or staged-out
  1239. after execution is complete. Sets the job's
  1240. .I stagein
  1241. and
  1242. .I stageout
  1243. attributes to the specified
  1244. .I path_lists.
  1245. On completion of the job, all staged-in and staged-out files and directories
  1246. are removed from the execution host(s). The
  1247. .I path_list
  1248. has the form:
  1249. .RS
  1250. .IP
  1251. .I filespec[,filespec]
  1252. .LP
  1253. where
  1254. .I filespec
  1255. is
  1256. .IP
  1257. .I local_path@hostname:remote_path
  1258. .LP
  1259. regardless of the direction of the copy.
  1260. The name
  1261. .I local_path
  1262. is the name of the file or directory on the primary execution host.
  1263. It can be relative to the staging and execution directory on the
  1264. execution host, or it can be an absolute path.
  1265. The "@" character separates local_path from remote_path.
  1266. The name
  1267. .I remote_path
  1268. is the path on
  1269. .I hostname.
  1270. The name can be relative to the staging and execution directory on the
  1271. primary execution host, or it can be an absolute path.
  1272. If
  1273. .I path_list
  1274. has more than one
  1275. .I filespec,
  1276. i.e. it contains commas, it must be enclosed in double-quotes.
  1277. If you use a UNC path, the hostname is optional. If you use a non-UNC
  1278. path, the hostname is required.
  1279. .RE
  1280. .LP
  1281. .I "umask=NNNN"
  1282. .IP
  1283. The umask with which the job is started. Default value: 077.
  1284. Can be used with one to four digits; typically two.
  1285. Sets job's
  1286. .I umask
  1287. attribute to
  1288. .I NNNN.
  1289. Controls umask of job's standard output and standard error.
  1290. Example:
  1291. .I -W umask=33
  1292. allows group and world read on the job's output.
  1293. .LP
  1294. .RE
  1295. .IP "-X" 8
  1296. Allows user to receive X output from interactive job.
  1297. DISPLAY variable in submission environment must be set to
  1298. desired display.
  1299. Can be used with interactive jobs only: must be used with
  1300. .I -I
  1301. or
  1302. .I -W interactive = true.
  1303. Cannot be used with
  1304. .I -v DISPLAY.
  1305. When used with
  1306. .I -Wblock=true,
  1307. no exit status is returned.
  1308. Can be used with
  1309. .I -V
  1310. option.
  1311. Not available under Windows.
  1312. .LP
  1313. .IP "-z" 8
  1314. Job identifier is not written to standard output.
  1315. .LP
  1316. .IP "--version" 8
  1317. The
  1318. .B qsub
  1319. command returns its PBS version information and exits.
  1320. This option can only be used alone.
  1321. .SH OPERANDS
  1322. The
  1323. .B qsub
  1324. command accepts as operands one of the following:
  1325. .RS 5
  1326. .I <script>
  1327. .br
  1328. .RS 5
  1329. a script
  1330. .RE
  1331. .I "-"
  1332. .RS 5
  1333. a dash
  1334. .RE
  1335. .I -- <executable> [arguments to executable]
  1336. .RS 5
  1337. a single executable (preceded by two dashes) and its arguments
  1338. .RE
  1339. .RE
  1340. .I <script>
  1341. .IP
  1342. Path to script. Can be absolute or relative to current directory
  1343. where
  1344. .B qsub
  1345. is run.
  1346. .LP
  1347. .I "-"
  1348. .IP
  1349. Any PBS directives and user tasks are read from the command line.
  1350. Same as for no operands.
  1351. .LP
  1352. .I -- <executable> [arguments to executable]
  1353. .IP
  1354. The executable, and any arguments to the executable, are given on
  1355. the
  1356. .B qsub
  1357. command line. The executable is preceded by two dashes, "--".
  1358. .LP
  1359. If a script or executable is specified, the script or executable must
  1360. be the last argument to
  1361. .B qsub.
  1362. The arguments to the executable follow the name of the executable.
  1363. .SH STANDARD OUTPUT
  1364. Unless the
  1365. .I \-z
  1366. option is set, the job identifier assigned to the job is written to
  1367. standard output if the job is successfully created.
  1368. .SH STANDARD ERROR
  1369. The
  1370. .B qsub
  1371. command writes a diagnostic message to standard error for
  1372. each error occurrence.
  1373. .SH ENVIRONMENT VARIABLES
  1374. The
  1375. .B qsub
  1376. command uses the following:
  1377. .IP PBS_DEFAULT 5
  1378. Name of default server.
  1379. .IP PBS_DPREFIX 5
  1380. Prefix string which identifies PBS directives.
  1381. .LP
  1382. Environment variables beginning with "PBS_O_" are created
  1383. by
  1384. .B qsub.
  1385. PBS automatically exports the following environment variables to the job,
  1386. and the job's
  1387. .I Variable_List
  1388. attribute is set to this list:
  1389. .IP PBS_ENVIRONMENT 5
  1390. Set to
  1391. .I PBS_BATCH
  1392. for a batch job. Set to
  1393. .I PBS_INTERACTIVE
  1394. for an interactive job.
  1395. Created upon execution.
  1396. .IP PBS_JOBDIR 5
  1397. Pathname of job's staging and execution directory on the
  1398. primary execution host.
  1399. .IP PBS_JOBID 5
  1400. Job identifier given by PBS when the job is submitted.
  1401. Created upon execution.
  1402. .IP PBS_JOBNAME 5
  1403. Job name given by user.
  1404. Created upon execution.
  1405. .IP PBS_NODEFILE 5
  1406. Name of file containing the list of nodes assigned to the job.
  1407. Created upon execution.
  1408. .IP PBS_O_HOME 5
  1409. User's home directory.
  1410. Value of HOME taken from user's submission environment.
  1411. .IP PBS_O_HOST 5
  1412. Name of submit host.
  1413. Value taken from user's submission environment.
  1414. .IP PBS_O_LANG 5
  1415. Value of LANG taken from user's submission environment.
  1416. .IP PBS_O_LOGNAME 5
  1417. User's login name.
  1418. Value of LOGNAME taken from user's submission environment.
  1419. .IP PBS_O_MAIL 5
  1420. Value of MAIL taken from user's submission environment.
  1421. .IP PBS_O_PATH 5
  1422. User's PATH.
  1423. Value of PATH taken from user's submission environment.
  1424. .IP PBS_O_QUEUE 5
  1425. Name of the queue to which the job was submitted.
  1426. Value taken from user's submission environment.
  1427. .IP PBS_O_SHELL 5
  1428. Value taken from user's submission environment.
  1429. .IP PBS_O_SYSTEM 5
  1430. Operating system, from
  1431. .I uname -s,
  1432. on submit host.
  1433. Value taken from user's submission environment.
  1434. .IP PBS_O_TZ 5
  1435. Value taken from user's submission environment.
  1436. .IP PBS_O_WORKDIR 5
  1437. Absolute path to directory where
  1438. .B qsub
  1439. is run.
  1440. Value taken from user's submission environment.
  1441. .IP PBS_QUEUE 5
  1442. Name of the queue from which the job is executed.
  1443. Created upon execution.
  1444. .IP TMPDIR 5
  1445. Pathname of job's scratch directory.
  1446. .SH EXIT STATUS
  1447. Zero upon successful processing of input.
  1448. Exit value is greater than zero upon failure of
  1449. .B qsub.
  1450. For blocking jobs,
  1451. .B qsub
  1452. exits and returns the exit value of the job. If the job is deleted
  1453. without being run,
  1454. .B qsub
  1455. returns an exit value of 3.
  1456. Warning about exit status with csh:
  1457. .br
  1458. If a job is run in csh and a .logout file
  1459. exists in the home directory in which the job executes, the exit status
  1460. of the job is that of the .logout script, not the job script. This may
  1461. impact any inter-job dependencies.
  1462. .SH SEE ALSO
  1463. The
  1464. .B PBS Professional User's Guide,
  1465. the
  1466. .B PBS Professional Administrator's Guide,
  1467. .br
  1468. pbs_job_attributes(7B),
  1469. pbs_server_attributes(7B),
  1470. pbs_resources(7B),
  1471. qalter(1B),
  1472. qhold(1B),
  1473. qmove(1B),
  1474. qmsg(1B),
  1475. qrerun(1B),
  1476. qrls(1B),
  1477. qselect(1B),
  1478. qstat(1B)