pbs_movejob.3B 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 pbs_movejob 3B "3 March 2015" Local "PBS Professional"
  37. .SH NAME
  38. pbs_movejob - move a PBS batch job to a new destination
  39. .SH SYNOPSIS
  40. #include <pbs_error.h>
  41. .br
  42. #include <pbs_ifl.h>
  43. .sp
  44. .B int pbs_movejob(\^int\ connect, char\ *job_id, char\ *destination, char\ *extend\^)
  45. .SH DESCRIPTION
  46. Issue a batch request to move a job to a new destination.
  47. The job is removed from the present queue and instantiated in a new
  48. queue.
  49. .LP
  50. A
  51. .I "Move Job"
  52. batch request is generated and sent to the server over the connection
  53. specified by
  54. .I connect
  55. which is the return value of \f3pbs_connect\f1().
  56. .LP
  57. The
  58. .I job_id
  59. parameter identifies which job is to be moved; it is specified in the form:
  60. .RS 4
  61. .I "sequence_number.server"
  62. .RE
  63. .LP
  64. The
  65. .I destination
  66. parameter specifies the new destination for the job. It is specified as:
  67. .RS 4
  68. .I [queue][@server] .
  69. .RE
  70. If
  71. .I destination
  72. is a null pointer or a null string,
  73. the destination will be the default queue at the current server. If
  74. .I destination
  75. specifies a queue but not a server, the destination will be the named queue
  76. at the current server. If
  77. .I destination
  78. specifies a server but not a queue, the destination will be
  79. the default queue at the named server. If
  80. .I destination
  81. specifies both a queue and a server, the destination is that queue at that
  82. server.
  83. .LP
  84. A job in the
  85. .B Running ,
  86. .B Transiting ,
  87. or
  88. .B Exiting
  89. state cannot be moved.
  90. .LP
  91. The parameter,
  92. .I extend ,
  93. is reserved for implementation-defined extensions.
  94. .SH "SEE ALSO"
  95. qmove(1B), qsub(1B), and pbs_connect(3B)
  96. .SH DIAGNOSTICS
  97. When the batch request generated by \f3pbs_movejob\f1()
  98. function has been completed successfully by a batch server, the routine will
  99. return 0 (zero).
  100. Otherwise, a non zero error is returned. The error number is also set
  101. in pbs_errno.