|
|
You can control use of the cron(C), at(C), and batch(C) commands that schedule or delay the execution of processes. Use the Cron Manager located in the System directory of the SCOadmin hierarchy.
The Cron Manager performs these tasks:
See also:
The system is initially configured to permit use of the job scheduling commands by root, sys, adm and uucp only, denying access to other users.
To change the system defaults,
make these selections in the Cron Manager
(the first is for cron and the second for at
and batch):
Authorize Scheduled Default
Authorize Delayed Default
These three selections are displayed:
The current behavior is highlighted. Use the arrow keys to select the behavior desired, or enter the first letter. Remember that users can be allowed or denied on an individual basis as well. The settings for individuals take precedence over the system defaults.
To change individual user permissions, make these selections
in the Cron Manager
(the first is for cron and the second for at
and batch):
Authorize Scheduled User
Authorize Delayed User
The cursor is placed on the ``User:'' field. Enter the name of the user or press <F3> for a list of possible users. When the user name is selected, these selections are displayed:
Use the arrow keys to select the behavior required. This setting overrides the system default.
It is also possible to define the environment in which at
and batch commands execute.
To edit the at and batch prototype files respectively,
use these selections in the Cron Manager:
Authorize Environment At
Authorize Environment Batch
These options edit the files /usr/lib/cron/.proto (for at) or /usr/lib/cron/.proto.b (for batch). These files are placed at the start of the shell script formed for all at and batch jobs. This script must conform to the usual /bin/sh syntax and contain some variables particular to the prototype file. These variables are:
There are many uses for prototype files; two examples are shown below:
nice -5 /bin/sh << 'END_OF_FILE' $< END_OF_FILE
/bin/csh << 'END_OF_FILE' $< END_OF_FILE
For most sites, the prototype files provided with the distribution should be sufficient.