home *** CD-ROM | disk | FTP | other *** search
- # Copyright (C) Khun Yee Fung clipper@csd.uwo.ca
- # You can do anything to this program except selling it for profit or
- # pretending you wrote it.
-
- This is a archie client written in Perl using the prospero protocol.
- It is standalone with no dependance on the prospero code in
- prospero.tar.Z on june.cs.washington.edu. I am not sure this program
- is useful as there is also a standalone archie program in that file
- archive, except that you have to compile the propero file system too.
- Anyhow.
-
- To start things off, modify the file archie.depend. You should also
- move archie in the directory where you store you perl scripts. The
- library files should be in the perl library.
-
- As I don't have a full document of the propero, some of the details in
- prospero might be misunderstood by me. I read the source code of the
- prospero file system to get information on the prospero protocol. I do
- have the file called protocol.txt from june.cs.washington.edu, but it
- is not complete. I would like to have a pointer to a fuller
- description, including the header information of the packets.
-
- This program is in the alpha testing stage. I need people to test,
- improve, and suggest, to make it better. It is written on a Sun 3/50.
- It might not work on other machines. If you port it to another machine
- type, please send me the diffs, thanks.
-
- As the documentation is not yet written, as it is still under revision,
- the following is a simple description of the program:
-
- 1. The options are:
- Search options
- -case Case sensitive search
- -nocase Case insensitive search
- -reg Regular expression search
- -exact Exact match search
-
- Number of hits
- -match # # is the number of maximum hits, the default is 100.
-
- Archie Host
- -host host host is the archie host. Quiche.cs.mcgill.ca is
- the default server.
-
- Print option
- -along Do the print along the way when the query is being
- carried out. I don't know whether quiche outputs
- full entries in each packet, this option might not
- be useful later on.
-
- Format options
- This program attempts to free the user from a fixed format. As
- I expect this program to be piped to another program to sort
- and/or analyse the results, the output format should be as
- flexible as possible. Therefore I include a format string that
- the user can specify to print the output in a particular way.
-
- -format string The format string is given.
- -ffile filename The file name containing the format string is given.
-
- Right now, the format string is very simple. The fields allowed are:
-
- $host : the host name of an entry
- $type : whether the entry is about a directory or a file
- $modes : the protection mode of the file/directory
- $size : a 10 character-field for the size of the file/directory
- $date : the last modified date of the file
- $name : the name of the file/directory
-
- The default format string is:
-
- Host $host
-
- Location: $dir
- $type $modes $size $date $name
-
- That is, an entry will look like this:
-
- Host rusmv1.rus.uni-stuttgart.de
-
- Location: /soft/tex/machines/atari/passautex
- File -rw-rw-r-- 148864 1991 Feb 14 11:34 GMT TeXDraw-1,41-ST.lzh
-
-
- Things to be done:
-
- 1, A default sorting option.
-
- 2, Clean up the code.
-
- 3, Get a full description of the protocol and archie entry-sending behaviour.
-
- 4, Clean up the resolver code for the people without a resolver library.
-
- 5, Comment the code as well as the prospero file system code.
-
- 6, I am sure I can think of other things to improve.
-
- Please send your comments, criticisms, diffs, etc. to me at
- clipper@csd.uwo.ca. Yes, you can even criticise my programming style.
-
- Khun Yee
-