Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!mhuxt!ihnp4!houxm!hropus!jrw
From: jrw@hropus.UUCP
Newsgroups: comp.unix.questions
Subject: Re: sVr2.2:  what is /usr/lib/cron/queuedefs?
Message-ID: <855@hropus.UUCP>
Date: Tue, 13-Jan-87 08:23:06 EST
Article-I.D.: hropus.855
Posted: Tue Jan 13 08:23:06 1987
Date-Received: Wed, 14-Jan-87 22:49:46 EST
References: <790@maynard.BSW.COM> <166@herman.UUCP> <210@bigtex.uucp> <131@tdi2.UUCP>
Organization: Bell Labs, Holmdel, NJ
Lines: 41

> Which reminds me:  the file /usr/lib/cron/queuedefs has consistently confused
> me.  Is it, as it appears, a way of specifying "flags" for multiple "at"
> queues?

Close ;-)

> a.4j1n		<- apparently the definition for the "at" queue
> b.2j2n90w		<- and for the "batch" (really, "at -b") queue
							    ^^ oops?

> If I don't need a sVr2 source license to get the answers, I'd like to know:

I hope you don't need a license for this, so, here goes...

> (1) Are the lines in queuedefs actually the flags for the "a" and "b" queues?
> (2) If (1), what do the flags mean, and what other flags are there?

		b.2j2n90w
		| | |  |
		| | |  + wait 90 seconds if the queue is full before
		| | |    looking at it again
		| | |
		| | +--- nice value of 2 on this queue
		| |
		| +----- run 2 jobs max (at a time) on this queue
		|
		+------- the queue [a-z]

> (3) Can I create my own queues, using the flags from (2)?  How do I specify
>     an arbitrary queue to "at"?

Just add a similar line to this file.

cat-ing /usr/bin/batch reveals a shell script.  As it is probably considered
source code, I cannot show it here ;-) but you specify different queues to at
by saying "at -qA" where A is [a-z].  

This is how it is done here anyway....
-- 
Jim Webb             "Out of phase--get help"          ...!ihnp4!hropus!jrw
    "Make sure comments and code agree.  If not, write a man page..."