


      AAAATTTT((((1111))))                       ((((UUUUNNNNIIIIXXXX 5555....2222))))                      AAAATTTT((((1111))))



      NNNNAAAAMMMMEEEE
           at, batch - execute commands at a later time

      SSSSYYYYNNNNTTTTAAAAXXXX
           aaaatttt _t_i_m_e [ _d_a_t_e ] [ ++++ _i_n_c_r_e_m_e_n_t ]
           aaaatttt ----rrrr  [ _j_o_b ... ]
           aaaatttt ----llll   [ _j_o_b ... ]

           bbbbaaaattttcccchhhh

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _A_t and _b_a_t_c_h read commands from standard input and execute
           them _a_t a later time.  _A_t allows you to specify when the
           commands should be executed, while jobs queued with _b_a_t_c_h
           will execute when system load level permits.  AAAAtttt ----rrrr removes
           jobs previously scheduled with _a_t. The ----llll option reports all
           jobs scheduled for the invoking user.

           Standard output and standard error output are mailed to the
           user unless they are redirected elsewhere.  The shell
           environment variables, current directory, umask, and ulimit
           are retained when the commands are executed.  Open file
           descriptors, traps, and priority are lost.

           Users are permitted to use aaaatttt if their name appears in the
           file ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////aaaatttt....aaaalllllllloooowwww.  If that file does not exist,
           the file ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////aaaatttt....ddddeeeennnnyyyy is checked to determine if
           the user should be denied access to aaaatttt.... If neither file
           exists, only root is allowed to submit a job.  If either
           file is aaaatttt....ddddeeeennnnyyyy, global usage is permitted.  The allow/deny
           files consist of one user name per line.

           The _t_i_m_e may be specified as 1, 2, or 4 digits.  One and two
           digit numbers are taken to be hours, four digits to be hours
           and minutes.  The time may alternately be specified as two
           numbers separated by a colon, meaning _h_o_u_r:_m_i_n_u_t_e.  A suffix
           aaaammmm or ppppmmmm may be appended; otherwise a 24-hour clock time is
           understood.  The suffix zzzzuuuulllluuuu may be used to indicate GMT.
           The special names nnnnoooooooonnnn, mmmmiiiiddddnnnniiiigggghhhhtttt, nnnnoooowwww, and nnnneeeexxxxtttt are also
           recognized.

           An optional _d_a_t_e may be specified as either a month name
           followed by a day number (and possibly year number preceded
           by an optional comma) or a day of the week (fully spelled or
           abbreviated to three characters).  Two special ``days'',
           ttttooooddddaaaayyyy and ttttoooommmmoooorrrrrrrroooowwww are recognized.  If no _d_a_t_e is given,
           ttttooooddddaaaayyyy is assumed if the given hour is greater than the
           current hour and ttttoooommmmoooorrrrrrrroooowwww is assumed if it is less.  If the
           given month is less than the current month (and no year is
           given), next year is assumed.

           The optional _i_n_c_r_e_m_e_n_t is simply a number suffixed by one of



      Page 1                                                   (9010-E)






      AAAATTTT((((1111))))                       ((((UUUUNNNNIIIIXXXX 5555....2222))))                      AAAATTTT((((1111))))



           the following:  mmmmiiiinnnnuuuutttteeeessss, hhhhoooouuuurrrrssss, ddddaaaayyyyssss, wwwweeeeeeeekkkkssss, mmmmoooonnnntttthhhhssss, or
           yyyyeeeeaaaarrrrssss.  (The singular form is also accepted.)

           Thus legitimate commands include:

                     at 0815am Jan 24
                     at 8:15am Jan 24
                     at now + 1 day
                     at 5 pm Friday

           _A_t and _b_a_t_c_h write the job number and schedule time to
           standard error.

           _B_a_t_c_h submits a batch job.  _B_a_t_c_h _i_s _a_l_m_o_s_t _e_q_u_i_v_a_l_e_n_t _t_o
           ``_a_t but it goes into a different queue, and ``at now'' will
           respond with the error message ``too late.''

           _A_t ----rrrr removes jobs previously scheduled by _a_t or _b_a_t_c_h.  The
           job number is the number given to you previously by the _a_t
           or _b_a_t_c_h command.  You can also get job numbers by typing _a_t
           ----llll.  You can only remove your own jobs unless you are the
           super-user.

      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
           The _a_t and _b_a_t_c_h commands read from standard input the
           commands to be executed at a later time.  _S_h(1) provides
           different ways of specifying standard input.  Within your
           commands, it may be useful to redirect standard output.

           This sequence can be used at a terminal:
                     batch
                     nroff _f_i_l_e_n_a_m_e >_o_u_t_f_i_l_e
                     <control-D> (hold down 'control' and depress 'D')

           This sequence, which demonstrates redirecting standard error
           to a pipe, is useful in a shell procedure (the sequence of
           output redirection specifications is significant):
                     batch <<!
                     nroff _f_i_l_e_n_a_m_e 2>&1 >_o_u_t_f_i_l_e | mail _l_o_g_i_n_i_d
                     !

           To have a job reschedule itself, invoke _a_t from within the
           shell procedure, by including code similar to the following
           within the shell file:
                     echo "sh _s_h_e_l_l_f_i_l_e" | at 1900 thursday next week


      FFFFIIIILLLLEEEESSSS
           /usr/lib/cron -               main cron directory
           /usr/lib/cron/at.allow -      list of allowed users
           /usr/lib/cron/at.deny -       list of denied users
           /usr/spool/cron/atjobs - spool area



      Page 2                                                   (9010-E)






      AAAATTTT((((1111))))                       ((((UUUUNNNNIIIIXXXX 5555....2222))))                      AAAATTTT((((1111))))



      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           cron(1), kill(1), mail(1), nice(1), ps(1), sh(1).

      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
           Complains about various syntax errors and times out of
           range.

















































      Page 3                                                   (9010-E)



