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:
The fields are described as follows:
|Specifies a character representing an event type. The following are valid values for the EventType field:
|Specifies an at command event.
|Specifies a batch command event.
|Specifies a crontab command event.
|Specifies a sync subroutine event.
|Specifies a ksh command event.
|Specifies a csh command event.
|Specifies the maximum number of jobs the cron daemon can start at one time. The default value is 100.
|Specifies the nice value for job execution. The default value is 2.
|Specifies the time, in seconds, to wait before attempting to execute the command again. The default value is 60 seconds.
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:
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:
|This is for queueing at jobs.
|This is for queueing batch jobs.
|This is for queueing ksh jobs.
|This is for queueing csh jobs.
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.