qmsg.1B 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 qmsg 1B "15 December 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B qmsg
  39. - write message string into one or more job output files
  40. .SH SYNOPSIS
  41. .B qmsg
  42. [-E] [-O] <message string>
  43. <job ID> [<job ID> ...]
  44. .br
  45. .B qmsg
  46. --version
  47. .SH DESCRIPTION
  48. Writes a message string into one or more output files of the job.
  49. Typically this is done to leave an informative message in the output
  50. of the job. Also called "sending a message to a job".
  51. The
  52. .B qmsg
  53. command writes messages into the files of jobs by sending a
  54. .I Message Job
  55. batch request to the batch server that owns the job. The
  56. .B qmsg
  57. command does not directly write the message into the files of the job.
  58. The
  59. .B qmsg
  60. command cannot be used on job arrays, subjobs, or ranges of
  61. subjobs.
  62. .SH OPTIONS
  63. .IP "-E" 8
  64. The message is written to the standard error of each job.
  65. .IP "-O" 8
  66. The message is written to the standard output of each job.
  67. .IP "--version" 8
  68. The
  69. .B qmsg
  70. command returns its PBS version information and exits.
  71. This option can only be used alone.
  72. .IP "(no options)" 8
  73. The message is written to the standard error of each job.
  74. .SH OPERANDS
  75. .IP "message string" 8
  76. The message to be written. String. First operand. If the string contains
  77. blanks, the string must be quoted. If the final character of the string
  78. is not a newline, a newline character is added when written to the job's file.
  79. .IP "job ID" 8
  80. The job(s) to receive the message string. This operand follows the
  81. .I message string
  82. operand. Cannot be a job array, subjob, or range of subjobs. The
  83. .B qmsg
  84. command accepts one or more
  85. .I job ID
  86. operands of the form:
  87. .br
  88. .I <sequence number>[.<server name>][@<server name>]
  89. .SH STANDARD ERROR
  90. The
  91. .B qmsg
  92. command writes a diagnostic message to standard error for
  93. each error occurrence.
  94. .SH EXIT STATUS
  95. .IP Zero 8
  96. Upon success
  97. .IP "Greater than zero" 8
  98. Upon failure
  99. .SH SEE ALSO
  100. The
  101. .I PBS Professional User's Guide,
  102. the
  103. .I PBS Professional Administrator's Guide,
  104. .br
  105. qsub(1B), pbs_msgjob(3B)