QALTER(1)                  POSIX Programmer's Manual                 QALTER(1)



PPRROOLLOOGG
       This manual page is part of the POSIX Programmer's Manual.  The OS
       implementation of this interface may differ (consult the corresponding
       OS manual page for details of OS behavior), or the interface may not be
       implemented on OS.

NNAAMMEE
       qalter -- alter batch job

SSYYNNOOPPSSIISS
       qalter [[-a _d_a_t_e___t_i_m_e]] [[-A _a_c_c_o_u_n_t___s_t_r_i_n_g]] [[-c _i_n_t_e_r_v_a_l]] [[-e _p_a_t_h___n_a_m_e]]
           [[-h _h_o_l_d___l_i_s_t]] [[-j _j_o_i_n___l_i_s_t]] [[-k _k_e_e_p___l_i_s_t]] [[-l _r_e_s_o_u_r_c_e___l_i_s_t]]
           [[-m _m_a_i_l___o_p_t_i_o_n_s]] [[-M _m_a_i_l___l_i_s_t]] [[-N _n_a_m_e]] [[-o _p_a_t_h___n_a_m_e]]
           [[-p _p_r_i_o_r_i_t_y]] [[-r _y|_n]] [[-S _p_a_t_h___n_a_m_e___l_i_s_t]] [[-u _u_s_e_r___l_i_s_t]]
           _j_o_b___i_d_e_n_t_i_f_i_e_r...

DDEESSCCRRIIPPTTIIOONN
       The attributes of a batch job are altered by a request to the batch
       server that manages the batch job. The _q_a_l_t_e_r utility is a user-
       accessible batch client that requests the alteration of the attributes
       of one or more batch jobs.

       The _q_a_l_t_e_r utility shall alter the attributes of those batch jobs, and
       only those batch jobs, for which a batch _j_o_b___i_d_e_n_t_i_f_i_e_r is presented to
       the utility.

       The _q_a_l_t_e_r utility shall alter the attributes of batch jobs in the
       order in which the batch _j_o_b___i_d_e_n_t_i_f_i_e_rs are presented to the utility.

       If the _q_a_l_t_e_r utility fails to process a batch _j_o_b___i_d_e_n_t_i_f_i_e_r
       successfully, the utility shall proceed to process the remaining batch
       _j_o_b___i_d_e_n_t_i_f_i_e_rs, if any.

       For each batch _j_o_b___i_d_e_n_t_i_f_i_e_r for which the _q_a_l_t_e_r utility succeeds,
       each attribute of the identified batch job shall be altered as
       indicated by all the options presented to the utility.

       For each identified batch job for which the _q_a_l_t_e_r utility fails, the
       utility shall not alter any attribute of the batch job.

       For each batch job that the _q_a_l_t_e_r utility processes, the utility shall
       not modify any attribute other than those required by the options and
       option-arguments presented to the utility.

       The _q_a_l_t_e_r utility shall alter batch jobs by sending a _M_o_d_i_f_y _J_o_b
       _R_e_q_u_e_s_t to the batch server that manages each batch job. At the time
       the _q_a_l_t_e_r utility exits, it shall have modified the batch job
       corresponding to each successfully processed batch _j_o_b___i_d_e_n_t_i_f_i_e_r.  An
       attempt to alter the attributes of a batch job in the RUNNING state is
       implementation-defined.

OOPPTTIIOONNSS
       The _q_a_l_t_e_r utility shall conform to the Base Definitions volume of
       POSIX.1-2017, _S_e_c_t_i_o_n _1_2_._2, _U_t_i_l_i_t_y _S_y_n_t_a_x _G_u_i_d_e_l_i_n_e_s.

       The following options shall be supported by the implementation:

       --aa _d_a_t_e___t_i_m_e
                 Redefine the time at which the batch job becomes eligible for
                 execution.

                 The _d_a_t_e___t_i_m_e argument shall be in the same form and
                 represent the same time as for the _t_o_u_c_h utility. The time so
                 represented shall be set into the _E_x_e_c_u_t_i_o_n___T_i_m_e attribute of
                 the batch job. If the time specified is earlier than the
                 current time, the --aa option shall have no effect.

       --AA _a_c_c_o_u_n_t___s_t_r_i_n_g
                 Redefine the account to which the resource consumption of the
                 batch job should be charged.

                 The syntax of the _a_c_c_o_u_n_t___s_t_r_i_n_g option-argument is
                 unspecified.

                 The _q_a_l_t_e_r utility shall set the _A_c_c_o_u_n_t___N_a_m_e attribute of
                 the batch job to the value of the _a_c_c_o_u_n_t___s_t_r_i_n_g option-
                 argument.

       --cc _i_n_t_e_r_v_a_l
                 Redefine whether the batch job should be checkpointed, and if
                 so, how often.

                 The _q_a_l_t_e_r utility shall accept a value for the interval
                 option-argument that is one of the following:

                 n         No checkpointing is to be performed on the batch
                           job (NO_CHECKPOINT).

                 s         Checkpointing is to be performed only when the
                           batch server is shut down (CHECKPOINT_AT_SHUTDOWN).

                 c         Automatic periodic checkpointing is to be performed
                           at the _M_i_n_i_m_u_m___C_p_u___I_n_t_e_r_v_a_l attribute of the batch
                           queue, in units of CPU minutes
                           (CHECKPOINT_AT_MIN_CPU_INTERVAL).

                 c=_m_i_n_u_t_e_s Automatic periodic checkpointing is to be performed
                           every _m_i_n_u_t_e_s of CPU time, or every
                           _M_i_n_i_m_u_m___C_p_u___I_n_t_e_r_v_a_l minutes, whichever is greater.
                           The _m_i_n_u_t_e_s argument shall conform to the syntax
                           for unsigned integers and shall be greater than
                           zero.

                 An implementation may define other checkpoint intervals. The
                 conformance document for an implementation shall describe any
                 alternative checkpoint intervals, how they are specified,
                 their internal behavior, and how they affect the behavior of
                 the utility.

                 The _q_a_l_t_e_r utility shall set the _C_h_e_c_k_p_o_i_n_t attribute of the
                 batch job to the value of the _i_n_t_e_r_v_a_l option-argument.

       --ee _p_a_t_h___n_a_m_e
                 Redefine the path to be used for the standard error stream of
                 the batch job.

                 The _q_a_l_t_e_r utility shall accept a _p_a_t_h___n_a_m_e option-argument
                 that conforms to the syntax of the _p_a_t_h___n_a_m_e element defined
                 in the System Interfaces volume of POSIX.1-2017, which can be
                 preceded by a host name element of the form _h_o_s_t_n_a_m_e:.

                 If the _p_a_t_h___n_a_m_e option-argument constitutes an absolute
                 pathname, the _q_a_l_t_e_r utility shall set the _E_r_r_o_r___P_a_t_h
                 attribute of the batch job to the value of the _p_a_t_h___n_a_m_e
                 option-argument, including the host name element, if present.

                 If the _p_a_t_h___n_a_m_e option-argument constitutes a relative
                 pathname and no host name element is specified, the _q_a_l_t_e_r
                 utility shall set the _E_r_r_o_r___P_a_t_h attribute of the batch job
                 to the value of the absolute pathname derived by expanding
                 the _p_a_t_h___n_a_m_e option-argument relative to the current
                 directory of the process that executes the _q_a_l_t_e_r utility.

                 If the _p_a_t_h___n_a_m_e option-argument constitutes a relative
                 pathname and a host name element is specified, the _q_a_l_t_e_r
                 utility shall set the _E_r_r_o_r___P_a_t_h attribute of the batch job
                 to the value of the option-argument without expansion.

                 If the _p_a_t_h___n_a_m_e option-argument does not include a host name
                 element, the _q_a_l_t_e_r utility shall prefix the pathname in the
                 _E_r_r_o_r___P_a_t_h attribute with _h_o_s_t_n_a_m_e:, where _h_o_s_t_n_a_m_e is the
                 name of the host upon which the _q_a_l_t_e_r utility is being
                 executed.

       --hh _h_o_l_d___l_i_s_t
                 Redefine the types of holds, if any, on the batch job. The
                 _q_a_l_t_e_r --hh option shall accept a value for the _h_o_l_d___l_i_s_t
                 option-argument that is a string of alphanumeric characters
                 in the portable character set.

                 The _q_a_l_t_e_r utility shall accept a value for the _h_o_l_d___l_i_s_t
                 option-argument that is a string of one or more of the
                 characters ''uu'', ''ss'', or ''oo'', or the single character ''nn''.
                 For each unique character in the _h_o_l_d___l_i_s_t option-argument,
                 the _q_a_l_t_e_r utility shall add a value to the _H_o_l_d___T_y_p_e_s
                 attribute of the batch job as follows, each representing a
                 different hold type:

                 u     USER

                 s     SYSTEM

                 o     OPERATOR

                 If any of these characters are duplicated in the _h_o_l_d___l_i_s_t
                 option-argument, the duplicates shall be ignored. An existing
                 _H_o_l_d___T_y_p_e_s attribute can be cleared by the hold type:

                 n     NO_HOLD

                 The _q_a_l_t_e_r utility shall consider it an error if any hold
                 type other than ''nn'' is combined with hold type ''nn''.  Strictly
                 conforming applications shall not repeat any of the
                 characters ''uu'', ''ss'', ''oo'', or ''nn'' within the _h_o_l_d___l_i_s_t option-
                 argument. The _q_a_l_t_e_r utility shall permit the repetition of
                 characters, but shall not assign additional meaning to the
                 repeated characters. An implementation may define other hold
                 types. The conformance document for an implementation shall
                 describe any additional hold types, how they are specified,
                 their internal behavior, and how they affect the behavior of
                 the utility.

       --jj _j_o_i_n___l_i_s_t
                 Redefine which streams of the batch job are to be merged. The
                 _q_a_l_t_e_r --jj option shall accept a value for the _j_o_i_n___l_i_s_t
                 option-argument that is a string of alphanumeric characters
                 in the portable character set.

                 The _q_a_l_t_e_r utility shall accept a _j_o_i_n___l_i_s_t option-argument
                 that consists of one or more of the characters ''ee'' and ''oo'',
                 or the single character ''nn''.

                 All of the other batch job output streams specified shall be
                 merged into the output stream represented by the character
                 listed first in the _j_o_i_n___l_i_s_t option-argument.

                 For each unique character in the _j_o_i_n___l_i_s_t option-argument,
                 the _q_a_l_t_e_r utility shall add a value to the _J_o_i_n___P_a_t_h
                 attribute of the batch job as follows, each representing a
                 different batch job stream to join:

                 e     The standard error of the batch job (JOIN_STD_ERROR).

                 o     The standard output of the batch job (JOIN_STD_OUTPUT).

                 An existing _J_o_i_n___P_a_t_h attribute can be cleared by the join
                 type:

                 n     NO_JOIN

                 If ''nn'' is specified, then no files are joined. The _q_a_l_t_e_r
                 utility shall consider it an error if any join type other
                 than ''nn'' is combined with join type ''nn''.

                 Strictly conforming applications shall not repeat any of the
                 characters ''ee'', ''oo'', or ''nn'' within the _j_o_i_n___l_i_s_t option-
                 argument. The _q_a_l_t_e_r utility shall permit the repetition of
                 characters, but shall not assign additional meaning to the
                 repeated characters.

                 An implementation may define other join types. The
                 conformance document for an implementation shall describe any
                 additional batch job streams, how they are specified, their
                 internal behavior, and how they affect the behavior of the
                 utility.

       --kk _k_e_e_p___l_i_s_t
                 Redefine which output of the batch job to retain on the
                 execution host.

                 The _q_a_l_t_e_r --kk option shall accept a value for the _k_e_e_p___l_i_s_t
                 option-argument that is a string of alphanumeric characters
                 in the portable character set.

                 The _q_a_l_t_e_r utility shall accept a _k_e_e_p___l_i_s_t option-argument
                 that consists of one or more of the characters ''ee'' and ''oo'',
                 or the single character ''nn''.

                 For each unique character in the _k_e_e_p___l_i_s_t option-argument,
                 the _q_a_l_t_e_r utility shall add a value to the _K_e_e_p___F_i_l_e_s
                 attribute of the batch job as follows, each representing a
                 different batch job stream to keep:

                 e     The standard error of the batch job (KEEP_STD_ERROR).

                 o     The standard output of the batch job (KEEP_STD_OUTPUT).

                 If both ''ee'' and ''oo'' are specified, then both files are
                 retained. An existing _K_e_e_p___F_i_l_e_s attribute can be cleared by
                 the keep type:

                 n     NO_KEEP

                 If ''nn'' is specified, then no files are retained. The _q_a_l_t_e_r
                 utility shall consider it an error if any keep type other
                 than ''nn'' is combined with keep type ''nn''.

                 Strictly conforming applications shall not repeat any of the
                 characters ''ee'', ''oo'', or ''nn'' within the _k_e_e_p___l_i_s_t option-
                 argument. The _q_a_l_t_e_r utility shall permit the repetition of
                 characters, but shall not assign additional meaning to the
                 repeated characters. An implementation may define other keep
                 types. The conformance document for an implementation shall
                 describe any additional keep types, how they are specified,
                 their internal behavior, and how they affect the behavior of
                 the utility.

       --ll _r_e_s_o_u_r_c_e___l_i_s_t
                 Redefine the resources that are allowed or required by the
                 batch job.

                 The _q_a_l_t_e_r utility shall accept a _r_e_s_o_u_r_c_e___l_i_s_t option-
                 argument that conforms to the following syntax:


                     resource=value[,,resource=value,,...]

                 The _q_a_l_t_e_r utility shall set one entry in the value of the
                 _R_e_s_o_u_r_c_e___L_i_s_t attribute of the batch job for each resource
                 listed in the _r_e_s_o_u_r_c_e___l_i_s_t option-argument.

                 Because the list of supported resource names might vary by
                 batch server, the _q_a_l_t_e_r utility shall rely on the batch
                 server to validate the resource names and associated values.
                 See _S_e_c_t_i_o_n _3_._3_._3, _M_u_l_t_i_p_l_e _K_e_y_w_o_r_d_-_V_a_l_u_e _P_a_i_r_s for a means
                 of removing _k_e_y_w_o_r_d=_v_a_l_u_e (and _v_a_l_u_e@_k_e_y_w_o_r_d) pairs and other
                 general rules for list-oriented batch job attributes.

       --mm _m_a_i_l___o_p_t_i_o_n_s
                 Redefine the points in the execution of the batch job at
                 which the batch server is to send mail about a change in the
                 state of the batch job.

                 The _q_a_l_t_e_r --mm option shall accept a value for the
                 _m_a_i_l___o_p_t_i_o_n_s option-argument that is a string of alphanumeric
                 characters in the portable character set.

                 The _q_a_l_t_e_r utility shall accept a value for the _m_a_i_l___o_p_t_i_o_n_s
                 option-argument that is a string of one or more of the
                 characters ''ee'', ''bb'', and ''aa'', or the single character ''nn''.
                 For each unique character in the _m_a_i_l___o_p_t_i_o_n_s option-
                 argument, the _q_a_l_t_e_r utility shall add a value to the
                 _M_a_i_l___U_s_e_r_s attribute of the batch job as follows, each
                 representing a different time during the life of a batch job
                 at which to send mail:

                 e     MAIL_AT_EXIT

                 b     MAIL_AT_BEGINNING

                 a     MAIL_AT_ABORT

                 If any of these characters are duplicated in the _m_a_i_l___o_p_t_i_o_n_s
                 option-argument, the duplicates shall be ignored.

                 An existing _M_a_i_l___P_o_i_n_t_s attribute can be cleared by the mail
                 type:

                 n     NO_MAIL

                 If ''nn'' is specified, then mail is not sent. The _q_a_l_t_e_r
                 utility shall consider it an error if any mail type other
                 than ''nn'' is combined with mail type ''nn''.  Strictly conforming
                 applications shall not repeat any of the characters ''ee'', ''bb'',
                 ''aa'', or ''nn'' within the _m_a_i_l___o_p_t_i_o_n_s option-argument. The
                 _q_a_l_t_e_r utility shall permit the repetition of characters but
                 shall not assign additional meaning to the repeated
                 characters.

                 An implementation may define other mail types. The
                 conformance document for an implementation shall describe any
                 additional mail types, how they are specified, their internal
                 behavior, and how they affect the behavior of the utility.

       --MM _m_a_i_l___l_i_s_t
                 Redefine the list of users to which the batch server that
                 executes the batch job is to send mail, if the batch server
                 sends mail about the batch job.

                 The syntax of the _m_a_i_l___l_i_s_t option-argument is unspecified.
                 If the implementation of the _q_a_l_t_e_r utility uses a name
                 service to locate users, the utility shall accept the syntax
                 used by the name service.

                 If the implementation of the _q_a_l_t_e_r utility does not use a
                 name service to locate users, the implementation shall accept
                 the following syntax for user names:


                     mail_address[,,mail_address,,...]

                 The interpretation of _m_a_i_l___a_d_d_r_e_s_s is implementation-defined.

                 The _q_a_l_t_e_r utility shall set the _M_a_i_l___U_s_e_r_s attribute of the
                 batch job to the value of the _m_a_i_l___l_i_s_t option-argument.

       --NN _n_a_m_e   Redefine the name of the batch job.

                 The _q_a_l_t_e_r --NN option shall accept a value for the _n_a_m_e
                 option-argument that is a string of up to 15 alphanumeric
                 characters in the portable character set where the first
                 character is alphabetic.

                 The syntax of the _n_a_m_e option-argument is unspecified.

                 The _q_a_l_t_e_r utility shall set the _J_o_b___N_a_m_e attribute of the
                 batch job to the value of the _n_a_m_e option-argument.

       --oo _p_a_t_h___n_a_m_e
                 Redefine the path for the standard output of the batch job.

                 The _q_a_l_t_e_r utility shall accept a _p_a_t_h___n_a_m_e option-argument
                 that conforms to the syntax of the _p_a_t_h___n_a_m_e element defined
                 in the System Interfaces volume of POSIX.1-2017, which can be
                 preceded by a host name element of the form _h_o_s_t_n_a_m_e:.

                 If the _p_a_t_h___n_a_m_e option-argument constitutes an absolute
                 pathname, the _q_a_l_t_e_r utility shall set the _O_u_t_p_u_t___P_a_t_h
                 attribute of the batch job to the value of the _p_a_t_h___n_a_m_e
                 option-argument.

                 If the _p_a_t_h___n_a_m_e option-argument constitutes a relative
                 pathname and no host name element is specified, the _q_a_l_t_e_r
                 utility shall set the _O_u_t_p_u_t___P_a_t_h attribute of the batch job
                 to the absolute pathname derived by expanding the _p_a_t_h___n_a_m_e
                 option-argument relative to the current directory of the
                 process that executes the _q_a_l_t_e_r utility.

                 If the _p_a_t_h___n_a_m_e option-argument constitutes a relative
                 pathname and a host name element is specified, the _q_a_l_t_e_r
                 utility shall set the _O_u_t_p_u_t___P_a_t_h attribute of the batch job
                 to the value of the _p_a_t_h___n_a_m_e option-argument without any
                 expansion of the pathname.

                 If the _p_a_t_h___n_a_m_e option-argument does not include a host name
                 element, the _q_a_l_t_e_r utility shall prefix the pathname in the
                 _O_u_t_p_u_t___P_a_t_h attribute with _h_o_s_t_n_a_m_e:, where _h_o_s_t_n_a_m_e is the
                 name of the host upon which the _q_a_l_t_e_r utility is being
                 executed.

       --pp _p_r_i_o_r_i_t_y
                 Redefine the priority of the batch job.

                 The _q_a_l_t_e_r utility shall accept a value for the priority
                 option-argument that conforms to the syntax for signed
                 decimal integers, and which is not less than -1024 and not
                 greater than 1023.

                 The _q_a_l_t_e_r utility shall set the _P_r_i_o_r_i_t_y attribute of the
                 batch job to the value of the _p_r_i_o_r_i_t_y option-argument.

       --rr y|n    Redefine whether the batch job is rerunnable.

                 If the value of the option-argument is ''yy'', the _q_a_l_t_e_r
                 utility shall set the _R_e_r_u_n_a_b_l_e attribute of the batch job to
                 TRUE.

                 If the value of the option-argument is ''nn'', the _q_a_l_t_e_r
                 utility shall set the _R_e_r_u_n_a_b_l_e attribute of the batch job to
                 FALSE.

                 The _q_a_l_t_e_r utility shall consider it an error if any
                 character other than ''yy'' or ''nn'' is specified in the option-
                 argument.

       --SS _p_a_t_h___n_a_m_e___l_i_s_t
                 Redefine the shell that interprets the script at the
                 destination system.

                 The _q_a_l_t_e_r utility shall accept a _p_a_t_h___n_a_m_e___l_i_s_t option-
                 argument that conforms to the following syntax:


                     pathname[@host][,pathname[@host],...]

                 The _q_a_l_t_e_r utility shall accept only one pathname that is
                 missing a corresponding host name. The _q_a_l_t_e_r utility shall
                 allow only one pathname per named host.

                 The _q_a_l_t_e_r utility shall add a value to the _S_h_e_l_l___P_a_t_h___L_i_s_t
                 attribute of the batch job for each entry in the
                 _p_a_t_h___n_a_m_e___l_i_s_t option-argument. See _S_e_c_t_i_o_n _3_._3_._3, _M_u_l_t_i_p_l_e
                 _K_e_y_w_o_r_d_-_V_a_l_u_e _P_a_i_r_s for a means of removing _k_e_y_w_o_r_d=_v_a_l_u_e
                 (and _v_a_l_u_e@_k_e_y_w_o_r_d) pairs and other general rules for list-
                 oriented batch job attributes.

       --uu _u_s_e_r___l_i_s_t
                 Redefine the user name under which the batch job is to run at
                 the destination system.

                 The _q_a_l_t_e_r utility shall accept a _u_s_e_r___l_i_s_t option-argument
                 that conforms to the following syntax:


                     username[@host][,,username[@host],,...]

                 The _q_a_l_t_e_r utility shall accept only one user name that is
                 missing a corresponding host name. The _q_a_l_t_e_r utility shall
                 accept only one user name per named host.

                 The _q_a_l_t_e_r utility shall add a value to the _U_s_e_r___L_i_s_t
                 attribute of the batch job for each entry in the _u_s_e_r___l_i_s_t
                 option-argument. See _S_e_c_t_i_o_n _3_._3_._3, _M_u_l_t_i_p_l_e _K_e_y_w_o_r_d_-_V_a_l_u_e
                 _P_a_i_r_s for a means of removing _k_e_y_w_o_r_d=_v_a_l_u_e (and
                 _v_a_l_u_e@_k_e_y_w_o_r_d) pairs and other general rules for list-
                 oriented batch job attributes.

OOPPEERRAANNDDSS
       The _q_a_l_t_e_r utility shall accept one or more operands that conform to
       the syntax for a batch _j_o_b___i_d_e_n_t_i_f_i_e_r (see _S_e_c_t_i_o_n _3_._3_._1, _B_a_t_c_h _J_o_b
       _I_d_e_n_t_i_f_i_e_r).

SSTTDDIINN
       Not used.

IINNPPUUTT FFIILLEESS
       None.

EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
       The following environment variables shall affect the execution of
       _q_a_l_t_e_r:

       _L_A_N_G      Provide a default value for the internationalization
                 variables that are unset or null. (See the Base Definitions
                 volume of POSIX.1-2017, _S_e_c_t_i_o_n _8_._2, _I_n_t_e_r_n_a_t_i_o_n_a_l_i_z_a_t_i_o_n
                 _V_a_r_i_a_b_l_e_s the precedence of internationalization variables
                 used to determine the values of locale categories.)

       _L_C___A_L_L    If set to a non-empty string value, override the values of
                 all the other internationalization variables.

       _L_C___C_T_Y_P_E  Determine the locale for the interpretation of sequences of
                 bytes of text data as characters (for example, single-byte as
                 opposed to multi-byte characters in arguments).

       _L_C___M_E_S_S_A_G_E_S
                 Determine the locale that should be used to affect the format
                 and contents of diagnostic messages written to standard
                 error.

       _L_O_G_N_A_M_E   Determine the login name of the user.

       _T_Z        Determine the timezone used to interpret the _d_a_t_e_-_t_i_m_e
                 option-argument. If _T_Z is unset or null, an unspecified
                 default timezone shall be used.

AASSYYNNCCHHRROONNOOUUSS EEVVEENNTTSS
       Default.

SSTTDDOOUUTT
       None.

SSTTDDEERRRR
       The standard error shall be used only for diagnostic messages.

OOUUTTPPUUTT FFIILLEESS
       None.

EEXXTTEENNDDEEDD DDEESSCCRRIIPPTTIIOONN
       None.

EEXXIITT SSTTAATTUUSS
       The following exit values shall be returned:

        0    Successful completion.

       >0    An error occurred.

CCOONNSSEEQQUUEENNCCEESS OOFF EERRRROORRSS
       In addition to the default behavior, the _q_a_l_t_e_r utility shall not be
       required to write a diagnostic message to standard error when the error
       reply received from a batch server indicates that the batch
       _j_o_b___i_d_e_n_t_i_f_i_e_r does not exist on the server. Whether or not the _q_a_l_t_e_r
       utility attempts to locate the batch job on other batch servers is
       implementation-defined.

       _T_h_e _f_o_l_l_o_w_i_n_g _s_e_c_t_i_o_n_s _a_r_e _i_n_f_o_r_m_a_t_i_v_e_.

AAPPPPLLIICCAATTIIOONN UUSSAAGGEE
       None.

EEXXAAMMPPLLEESS
       None.

RRAATTIIOONNAALLEE
       The _q_a_l_t_e_r utility allows users to change the attributes of a batch
       job.

       As a means of altering a queued job, the _q_a_l_t_e_r utility is superior to
       deleting and requeuing the batch job insofar as an altered job retains
       its place in the queue with some traditional selection algorithms. In
       addition, the _q_a_l_t_e_r utility is both shorter and simpler than a
       sequence of _q_d_e_l and _q_s_u_b utilities.

       The result of an attempt on the part of a user to alter a batch job in
       a RUNNING state is implementation-defined because a batch job in the
       RUNNING state will already have opened its output files and otherwise
       performed any actions indicated by the options in effect at the time
       the batch job began execution.

       The options processed by the _q_a_l_t_e_r utility are identical to those of
       the _q_s_u_b utility, with a few exceptions: --VV, --vv, and --qq.  The --VV and --vv
       are inappropriate for the _q_a_l_t_e_r utility, since they capture
       potentially transient environment information from the submitting
       process. The --qq option would specify a new queue, which would largely
       negate the previously stated advantage of using _q_a_l_t_e_r; furthermore,
       the _q_m_o_v_e utility provides a superior means of moving jobs.

       Each of the following paragraphs provides the rationale for a _q_a_l_t_e_r
       option.

       Additional rationale concerning these options can be found in the
       rationale for the _q_s_u_b utility.

       The --aa option allows users to alter the date and time at which a batch
       job becomes eligible to run.

       The --AA option allows users to change the account that will be charged
       for the resources consumed by the batch job. Support for the --AA option
       is mandatory for conforming implementations of _q_a_l_t_e_r, even though
       support of accounting is optional for servers. Whether or not to
       support accounting is left to the implementor of the server, but
       mandatory support of the --AA option assures users of a consistent
       interface and allows them to control accounting on servers that support
       accounting.

       The --cc option allows users to alter the checkpointing interval of a
       batch job. A checkpointing system, which is not defined by
       POSIX.1-2008, allows recovery of a batch job at the most recent
       checkpoint in the event of a crash. Checkpointing is typically used for
       jobs that consume expensive computing time or must meet a critical
       schedule. Users should be allowed to make the tradeoff between the
       overhead of checkpointing and the risk to the timely completion of the
       batch job; therefore, this volume of POSIX.1-2017 provides the
       checkpointing interval option. Support for checkpointing is optional
       for servers.

       The --ee option allows users to alter the name and location of the
       standard error stream written by a batch job. However, the path of the
       standard error stream is meaningless if the value of the _J_o_i_n___P_a_t_h
       attribute of the batch job is TRUE.

       The --hh option allows users to set the hold type in the _H_o_l_d___T_y_p_e_s
       attribute of a batch job. The _q_h_o_l_d and _q_r_l_s utilities add or remove
       hold types to the _H_o_l_d___T_y_p_e_s attribute, respectively. The --hh option has
       been modified to allow for implementation-defined hold types.

       The --jj option allows users to alter the decision to join (merge) the
       standard error stream of the batch job with the standard output stream
       of the batch job.

       The --ll option allows users to change the resource limits imposed on a
       batch job.

       The --mm option allows users to modify the list of points in the life of
       a batch job at which the designated users will receive mail
       notification.

       The --MM option allows users to alter the list of users who will receive
       notification about events in the life of a batch job.

       The --NN option allows users to change the name of a batch job.

       The --oo option allows users to alter the name and path to which the
       standard output stream of the batch job will be written.

       The --PP option allows users to modify the priority of a batch job.
       Support for priority is optional for batch servers.

       The --rr option allows users to alter the rerunability status of a batch
       job.

       The --SS option allows users to change the name and location of the shell
       image that will be invoked to interpret the script of the batch job.
       This option has been modified to allow a list of shell name and
       locations associated with different hosts.

       The --uu option allows users to change the user identifier under which
       the batch job will execute.

       The _j_o_b___i_d_e_n_t_i_f_i_e_r operand syntax is provided so that the user can
       differentiate between the originating and destination (or executing)
       batch server. These may or may not be the same. The ._s_e_r_v_e_r___n_a_m_e
       portion identifies the originating batch server, while the @_s_e_r_v_e_r
       portion identifies the destination batch server.

       Historically, the _q_a_l_t_e_r utility has been a component of the Network
       Queuing System (NQS), the existing practice from which this utility has
       been derived.

FFUUTTUURREE DDIIRREECCTTIIOONNSS
       The _q_a_l_t_e_r utility may be removed in a future version.

SSEEEE AALLSSOO
       _C_h_a_p_t_e_r _3, _B_a_t_c_h _E_n_v_i_r_o_n_m_e_n_t _S_e_r_v_i_c_e_s, _q_d_e_l, _q_h_o_l_d, _q_m_o_v_e, _q_r_l_s, _q_s_u_b,
       _t_o_u_c_h

       The Base Definitions volume of POSIX.1-2017, _C_h_a_p_t_e_r _8, _E_n_v_i_r_o_n_m_e_n_t
       _V_a_r_i_a_b_l_e_s, _S_e_c_t_i_o_n _1_2_._2, _U_t_i_l_i_t_y _S_y_n_t_a_x _G_u_i_d_e_l_i_n_e_s

CCOOPPYYRRIIGGHHTT
       Portions of this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1-2017, Standard for Information Technology --
       Portable Operating System Interface (POSIX), The Open Group Base
       Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the
       Institute of Electrical and Electronics Engineers, Inc and The Open
       Group.  In the event of any discrepancy between this version and the
       original IEEE and The Open Group Standard, the original IEEE and The
       Open Group Standard is the referee document. The original Standard can
       be obtained online at http://www.opengroup.org/unix/online.html .

       Any typographical or formatting errors that appear in this page are
       most likely to have been introduced during the conversion of the source
       files to man page format. To report such errors, see
       https://www.kernel.org/doc/man-pages/reporting_bugs.html .



IEEE/The Open Group                  2017                            QALTER(1)
