DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

proto(F)


proto -- prototype job file for at, cron and batch

Format

See the file /usr/lib/cron/.proto

Description

When a job is submitted to at or batch, the job is constructed as a shell script. First, a prologue is constructed, consisting of:

Text from the prototype file is copied to the job file, except for special ``variables'' that are replaced by other text:


$d
is replaced by the current working directory

$l
is replaced by the current file size limit (see ulimit(S))

$m
is replaced by the current umask (see umask(S))

$t
is replaced by the time at which the job should be run, expressed as seconds since January 1, 1970, 00:00 Greenwich Mean Time, preceded by a colon

$<
is replaced by text read by at from the standard input (that is, the commands provided to at to be run in the job)

If the job is submitted in queue queue, at uses the file /usr/lib/cron/.proto.queue as the prototype file if it exists; otherwise it will use the file /usr/lib/cron/.proto.

Examples

The standard .proto file supplied is:
   #ident	"@(#)adm:.proto	1.2"
   cd $d
   ulimit $l
   umask $m
   $<
This causes the values in the job of the current directory, the file size limit, and the file creation mode mask (see umask(C)) to be changed to the values that were current when at or batch was invoked. The commands to do this are inserted before the job commands.

Files


/usr/lib/cron/.proto
standard prototype job file

/usr/lib/cron/.proto.a
prototype at job file

/usr/lib/cron/.proto.b
prototype batch (see at(C)) job file

See also

at(C), atcronsh(ADM), queuedefs(F), umask(C)


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003