System Administration Guide
Chapter 1, Administering user accounts

Using environment files for the at or batch commands

Using environment files for the at or batch commands

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


NOTE: Only root can make these selections.

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:

$d
Current directory of the user at the time of submission.

$l
ulimit for the user at the time of submission.

$m
umask for the user at the time of submission.

$t
Time (in seconds past 1 Jan 1970) that the script is run.

$<
Replaced with the entire script that the user submits. Normally, this appears last in the file, after the prologue that you set up. If you decide to include information after this variable, the shell script may exit before reaching it.
Only the superuser can edit these files.