Maintenance Commands                                     lmat(1m)

NAME
     lmat - schedules commands or programs to run on a server  at
     a  specified  time or date.  (Note that there also exists an
     MS-DOS at command.)

SYNOPSIS
     lmat [/I instance] [id] [/delete]
     lmat [/I instance] time [/every:date[,...] | /next:date [,...]]
] command

DESCRIPTION
     Use the lmat command to run commands at regularly  scheduled
     intervals.   To  display  a list of scheduled commands, type
     lmat without options.   Commands  scheduled  with  the  lmat
     utility  run as background processes; no output is displayed
     at the server.

     To redirect the output to a file, use the redirection symbol
     (  >  )  and the full path name. If you redirect output to a
     file, enclose the command you are  scheduling  in  quotation
     marks.

     Scheduled tasks are not lost if you stop the server, but the
     server  must  be  running  at  the  time  the  commands  are
     scheduled to execute.

OPTIONS
  /I instance
     Specifies the PCNL instance name  or  number.  In  a  multi-
     instance environment instance may be specified either on the
     command line or by the environment  variable  PCNL_INSTANCE.
     If  there  is only one instance configured, it is not neces-
     sary to specify this argument.

  id
     An identification number assigned to a scheduled command.

  time
     Specifies the time when command is to run.  It is  expressed
     as  hours:minutes  in  a  24-hour notation (00:00 [midnight]
     through 23:59).

  command
     Specifies the command that is to run on  PC  NetLink.   When
     the  command  requires  a  path name as an argument, use the
     absolute path name.

  /delete
     Cancels  a  scheduled  command.   If  id  is  omitted,   all
     scheduled commands on the server are canceled.

  /every:date[,...]
     Runs the command on each specified day(s)  of  the  week  or
     month.   Specify date as one or more days of the week (M, T,
     W, Th, F, S, Su) or one or more days  of  the  month  (using
     numbers  1 through 31).  Separate multiple date entries with
     a comma.  If date is omitted, the current date is assumed.

  /next:date[,...]
     Runs the command on the next occurrence of the day.  Specify
     date as one or more days of the week (M, T, W, Th, F, S, Su)
     or one or more days of the month (using  numbers  1  through
     31).   Separate multiple date entries with a comma.  If date
     is omitted, the current date is assumed.

EXAMPLES
     To display a list of commands scheduled on the server,  type
     the following command:

          net admin \\servername /command lmat

     To learn more about a command with the identification number
     3, type the following command:

          net admin \\servername /command lmat 3

     To cancel all commands scheduled on a server, clear the lmat
     schedule by typing the following command:

          net admin \\servername /command lmat /delete.SF