*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> proto (4)              
Title
Content
Arch
Section
 

Contents


PROTO(4)							      PROTO(4)


NAME    [Toc]    [Back]

     proto - prototype job file	for at

SYNOPSIS    [Toc]    [Back]

     /usr/lib/cron/.proto

     /usr/lib/cron/.proto.queue

DESCRIPTION    [Toc]    [Back]

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

     o	A header whether the job is an at job or a batch job (actually,	at
	jobs submitted to all queues other than	queue a, not just to the batch
	queue b, are listed as batch jobs); the	header will be

	  : at job

     for an at job, and

	  : batch job

     for a batch job.

     o	  A set	of Bourne shell	commands to make the environment (see
	  environ(5)) for the at job the same as the current environment;

     o	  A command to run the user's shell (as	specified by the SHELL
	  environment variable)	with the rest of the job file as input.

     At	then reads a "prototype	file," and constructs the rest of the job file
     from it.

     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(2))
	  $m   is replaced by the current umask	(see umask(2))
	  $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.







									Page 1






PROTO(4)							      PROTO(4)



EXAMPLES
     The standard .proto file supplied is:

	  #ident    "@(#)adm:.proto	1.2"
	  cd $d
	  ulimit $l
	  umask	$m
	  $<

     which causes commands to change the current directory in the job to the
     current directory at the time at was run, to change the file size limit
     in	the job	to the file size limit at the time at was run, and to change
     the umask in the job to the umask at the time at was run, to be inserted
     before the	commands in the	job.

FILES    [Toc]    [Back]

     /usr/lib/cron/.proto
     /usr/lib/cron/.proto.queue

SEE ALSO    [Toc]    [Back]

      
      
     at(1)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
proto HP-UX prototype job file for at(1)
mkproto Tru64 Constructs a prototype file system
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
migrate Tru64 Move a file or file pages to another volume in an AdvFS file domain
ffm Tru64 File-on-File Mounting File System
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
ff_vxfs HP-UX fast find: list file names and statistics for a VxFS file system
cmstif2jpg IRIX reformat TIFF image file as JPEG file, maintains profile tag
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service