[net.unix-wizards] Can anybody explain this uucp spool directory setup?

bill@sigma.UUCP (Bill Swan) (12/29/85)

In our directory (/usr/spool/uucp/) there are several subdirectories. I am
not entirely sure what they are used for, and the documentation for our 4.2bsd
system makes absolutely no mention of them. I have made some guesses as to the 
functions, but would appreciate correction (to aid a program I am writing).

In /usr/spool/uucp:	My best guess:		Wild guess:

	C./		command (work) files
	D.sigma/	outgoing "data" files
	D.sigmaX/	outgoing execute files
	D./					incoming "data" files?
	TM./		incoming ("data"?) files, temporary
	X./					incoming execute files?
	XTMP/					incoming (exec) files, temp?

Also, in the document _Uucp Implementation Description_ by D.A.Nowitz, pg 5,
there is a description of how "work-related file" names are generated. There
is mention of one character in the name described as "Grade", but no other
mention to that character nor what "Grade" is is made. Does anyone know?
-- 
William Swan  {ihnp4,decvax,allegra,...}!uw-beaver!tikal!sigma!bill

sob@neuro1.UUCP (Stan Barber) (01/02/86)

Your guess are pretty much correct. You are probably confused by
the differece between the X. and C. directories. Let me see if I can 
clarify.

I think I have this all straight, but one of the other net-readers
may need to correct me on some of the fine points.

The C. directory contains directives for uucico when it is sending
the files out. It sends the files to the remote system as directed
by the C. directory files.
The files that it sends are stored in the D.systemnameX and D.systemname
directories.

The X. directory is used by uuxqt for incoming execution files. Data files
that uuxqt may need to use are stored in the D. directory.

The TM. directory is where the slave uucico puts files as they come in
from the master. After successfully  receiving a file, uucico will move it
wherever it needs to go. The XTMP directory is used by uuxqt as /tmp
might be used by a regular user.

I believe the Grade feature was unimplemented until recently with the
latest version (4.3 BSD and HonyDanBer) uucp. By using a grading scheme,
the system administrator can regular the order of transmission of files/jobs.
This can allow mail to have a higher priority than news, etc.

P.S. I attempted to reply to you directly, but sigma is not in
the map. Please submit an entry to uucpmap@cbosgd. Thanks.


-- 
Stan		uucp:{ihnp4!shell,rice}!neuro1!sob     Opinions expressed
Olan		ARPA:sob@rice.arpa		       here are ONLY mine &
Barber		CIS:71565,623   BBS:(713)660-9262      noone else's.

martinl@molihp.UUCP (Martin M Lacey) (01/03/86)

In article <579@sigma.UUCP> bill@sigma.UUCP (William Swan) writes:
>In our directory (/usr/spool/uucp/) there are several subdirectories. I am
>not entirely sure what they are used for, and the documentation for our 4.2bsd
>system makes absolutely no mention of them. I have made some guesses as to the 
>functions, but would appreciate correction (to aid a program I am writing).
>
>-- 
>William Swan  {ihnp4,decvax,allegra,...}!uw-beaver!tikal!sigma!bill


William:
	The file format is:
		type.system-name grade number

	where type is:
			C - copy command file;
			D - data file;
			X - execute file;
	where system-name is the remote system;
	grade is a character (priority letter, I believe, A being highest);
	and number is a 4 digit sequence number that is pulled out of the
	fine /usr/lib/uucp/SEQF.

	others are:
			TM - temporary data file, while files are being
			     copied from a remote machine.
			     (format: TM.pid.ddd where pid is the process
			      id and ddd is a 3 digit sequential number )
			XTM - temporary execute file, with the same description
			      as the TM file (I think).

	I hope this gets to you in time to be of help.
				Magic Martin.


<DISCLAIMER:  Opinions or ideas expressed are all mine, mine!...
	Dispite fears, I don't read others thoughts and display
	them - without permission.  Rest easy associates.	  >

davidsen@steinmetz.UUCP (01/09/86)

Grade is used to allow faster or slower output of files. It's probably not
useful unless a system is *really* overloaded on output. Some sites use it to
indicate critial output which should be sent ASAP even during high phone
change hours. Most systems recognize grade "S" (option -gS) as "slave", and
never send the file, but wait until the recipient calls in to get it. This is
like the "Slave" in L.sys entry, but on a file basis. I frequently use it when
someone asks me to send a really large file from my personal (I pay the bills)
system, to let them eat the phone bill.

	Hope this helps...
-- 
	-bill davidsen

	seismo!rochester!steinmetz!--\
       /                               \
ihnp4!              unirot ------------->--- crdos1!davidsen
       \                               /
        chinet! ---------------------/

"It seemed like a good idea at the time..."

guy@sun.uucp (Guy Harris) (01/12/86)

> Most systems recognize grade "S" (option -gS) as "slave", and
> never send the file, but wait until the recipient calls in to get it.

"Most systems"?  4.2BSD, 4.3BSD, and System V don't seem to have any code to
recognize this special grade code (which means V7, 4.1BSD, and System III
probably didn't either); what "most systems" are you talking about?

	Guy Harris