home *** CD-ROM | disk | FTP | other *** search
- Description
- -----------
- Have you ever wondered what on earth "xfrg2.2.tar.Z" was? Are you
- wondering whether "foo" is really a scratch file? Does it ashame you
- especially, seeing that these files were created by you?
-
- I have the solution for you... File Descriptions.
-
- I'm sure some operating system or another once had the ability to set
- a descriptive comment on a file, but Unix wasn't one of them. It is
- possible, however, to retro-fit onto Unix an implementation that works
- quite well.
-
- In this package, I have provided a utility to set/delete/list file
- descriptions (describe), and a directory listing utility that shows
- any file descriptions that are set next to the respective files (dl).
-
- Implementation
- --------------
- The storage/retrieval of file-descriptions is implemented in the
- following way:
-
- All file descriptions are stored in a DBM file called .desc,
- in the same directory as the files described. This in fact
- means that you have two files, .desc.pag and .desc.dir.
-
- Each description is indexed by the name of the file (excluding
- any path information). To provide a better chance of finding
- the description after the file has been renamed (within the
- same directory), the name is also indexed by the inode-number.
- This means that the file's description will still be found
- after it has been renamed (within the same directory) or
- re-written by an editor. To prevent the two indexes from
- becoming mixed up, whenever a name/description pair are stored
- with a name that is the same size as an inode-number, the name
- is stored with a trailing null byte.
-
-
- Purpose
- -------
- My reason for coming up with this idea is simple. I got tired of
- logging on to some distant site's anonymous FTP area, and coming
- across something like:
-
- -rw-r--r-- 1 root 214807 May 22 1989 3c503.tar.Z
- -rw-r--r-- 1 bin 27751 Aug 22 16:35 bonnie
- -rw-rw-r-- 1 uucp 65383 Aug 23 02:54 dynafeed.tar.Z
- -rw-r--r-- 1 bin 10444 Nov 3 21:58 fpipe
- -rw-r--r-- 1 bin 47138 Aug 22 16:41 opaque (good name!)
- -rw-r--r-- 1 don 683759 May 29 23:21 psiber.tar.Z
-
- You know? You sit there and think ... "some of those sound
- interesting, but it wouldn't be nice for me to download them just to
- find out what they are...".
-
- If there is no other demand for describe/dl, there should be as a
- replacement for ls in anonymous FTP areas. And that's how simple it
- is, once you have dl installed, simply copy it to ~ftp/bin/ls, and
- the FTP daemon will use it instead of standard ls for anonymous
- logins. The output of dl was actually designed with anonymous FTP
- use in mind (who cares who owns the file or which group it belongs
- to?).
-
- Of course, the site administrator has to provide meaningful
- descriptions for what has been put in the anonymous FTP area. I don't
- think it would be too hard to generate descriptions files from an
- index of something like comp.sources.unix, though. A dozen lines of
- perl should do it.
-
- An Example
- ----------
- As an example of what an anonymous FTP site that uses dl looks like,
- try my back yard, admin.viccol.edu.au.
-
- Copyright
- ---------
- The whole system is Copyright (c) Tim Cook 1991, apart from strpbrk.c
- which is Copyright (c) 1985 Regents of the University of California.
- All together, the package can be distributed provided no profit is
- made from any distribution, and all copyright notices remain intact.
-
- The Author
- ----------
- Tim Cook, Systems Administrator, Victoria College Computer Services.
- E-mail: timcc@viccol.edu.au
-
- I am the administrator of a Sequent S27 (Symmetry),
- admin.viccol.edu.au, which runs administrative systems under Oracle.
-
- Miscellaneous
- -------------
- The "dl" command used to be known as "dls", but Ultrix already had a
- "dls" command, which is for "DECnet ls", so I changed it.
-
- The dl/describe package was developed under DYNIX version 3.0.12,
- which is a BSD 4.2 based version of Unix. This means that dl/describe
- should compile on "most" BSD 4.2 derived systems. It has also
- compiled on several SYSV-based systems. See INSTALL, config.h and
- Makefile for porting details.
-
- Could I ask all those who install dl in their Anonymous FTP areas to
- drop me a line? Any criticisms, suggestions gladly accepted. I am
- quite interested in what people think of this idea.
-
- I am also interested in seeing the results of any porting efforts, so
- that I can incorporate them in later releases. Depending on the level
- of my spare time, I would even be prepared to assist you in porting
- this to your particular brand of Unix. I have a desire to see this
- propagate as far as possible around the world of Unix anonymous FTP
- sites.
-
- The Future for dl/describe
- ---------------------------
- So far, dl has been installed in only a few Anonymous FTP
- installations. I would like to lobby, or have others lobby some of
- the larger or more popular sites to have them think about dl.
-
- To make dl seem better though, I will be adding the following (I
- can't say when though):
-
- 1. Better co-operation with ftpd and the archie system.
-
- 2. A set of commonly used file utilities that are aware of
- descriptions, also to give descriptions a better chance of
- survival. Probably would be trivial shell scripts.
-
- 3. Better portability.
-