Specifies the handling of cron daemon events.
The /var/adm/cron/queuedefs file defines how the system handles different cron daemon events types. The file specifies the maximum number of processes per event type to schedule at one time, the nice value of the event type, and how long to wait before retrying to execute a process. The following event types can be scheduled by the cron daemon:
This file is empty as shipped, but can be modified to change how the cron daemon handles each event type. Each entry in the queuedefs file is of the form:
EventType.[Jobsj][Nicen][Waitw]
The fields are described as follows:
Note: You must have root user authority to modify this file.
The at command allows you to specify the time when a command should be run. Each command or program will be assigned a job number and will be queued in the /var/spool/cron/atjobs directory.
The queueing system may also be set up by defining a batch queue in the /etc/qconfig file and using the enq command to submit a job to this queue. This queue may be set up with a first-come, first-serve discipline. The following stanzas should be added to the /etc/qconfig file to enable this:
bsh device = bshdev discipline = fcfs bshdev: backend = usr/bin/sh
This configuration may already exist in the /etc/qconfig file. If you want your commands and programs to run under the Korn shell, you should change the last line in the above stanza to:
backend = usr/bin/ksh
After creating the above stanza in the /etc/qconfig file, enable the queue by issuing the following:
qchk -A
Programs and commands may now be run on a first-come, first-serve basis using the enq command. For example, to run the program PROGRAM1 from the bsh queue, enter:
enq -P bsh PROGRAM1
The flags for the batch facility and queueing are:
at -qa | This is for queueing at jobs. |
at -qb | This is for queueing batch jobs. |
at -qe | This is for queueing ksh jobs. |
at -qf | This is for queueing csh jobs. |
a.4j1n
c.2j2n90w
The queuedefs file is part of Base Operating System (BOS) Runtime.
The at command, batch command, crontab command, csh command, enq command, ksh command, rc command.
The cron daemon.
The fork subroutine, sync subroutine.