home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / internet / archie.man < prev    next >
Encoding:
Text File  |  2003-06-11  |  38.1 KB  |  1,092 lines

  1. archie> manpage
  2.  
  3.  
  4.  
  5. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  6.  
  7.  
  8.  
  9. NAME
  10.      archie - Internet archive server listing service
  11.  
  12. SYNOPSIS
  13.      archie
  14.  
  15. DESCRIPTION
  16.      This manual page describes Version 3 of the  archie  system.
  17.      This Internet information service allows the user to query a
  18.      database containing a list of files which are  available  on
  19.      hosts  connected  to  the Internet. Software located through
  20.      this service can be obtained by means of ftp(1);  for  hosts
  21.      with  access  to BITNET/NetNorth/EARN, it can be obtained by
  22.      electronic mail through the Princeton bitftp  (1L)  service.
  23.      Send mail to
  24.  
  25.                          bitftp@pucc.princeton.edu
  26.  
  27.      Other Internet users who are not directly connected may  use
  28.      the services of various ftp-by-mail servers including
  29.  
  30.                          ftpmail@decwrl.dec.com
  31.  
  32.      Some archie systems track  archive  sites  globally,  others
  33.      only  track  the  archive  sites in their country, region or
  34.      continent in order  to  reduce  the  load  on  trans-oceanic
  35.      links.  There are a number of archie hosts serving different
  36.      continental user communities. The servers command will  list
  37.      the most up-to-date information on archie servers worldwide.
  38.  
  39.      archie.au*                  Australia
  40.      archie.edvz.uni-linz.ac.at* Austria
  41.      archie.univie.ac.at*        Austria
  42.      archie.uqam.ca*             Canada
  43.      archie.funet.fi             Finland
  44.      archie.th-darmstadt.de*     Germany
  45.      archie.ac.il*               Israel
  46.      archie.unipi.it*            Italy
  47.      archie.wide.ad.jp           Japan
  48.      archie.kr*                  Korea
  49.      archie.sogang.ac.kr*        Korea
  50.      archie.rediris.es*          Spain
  51.      archie.luth.se*             Sweden
  52.      archie.switch.ch*           Switzerland
  53.      archie.ncu.edu.tw*          Taiwan
  54.      archie.doc.ic.ac.uk*        United Kingdom
  55.      archie.unl.edu              USA (NE)
  56.      archie.internic.net*        USA (NJ)
  57.      archie.rutgers.edu*         USA (NJ)
  58.      archie.ans.net*             USA (NY)
  59.      archie.sura.net*            USA (MD)
  60.      Sites marked with an asterisk '*' run archie version 3.0
  61.  
  62.  
  63.  
  64. Sun Release 4.1     Last change: 12 Apr 1993                    1
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  72.  
  73.  
  74.  
  75.      archie can be accessed interactively, via electronic mail or
  76.      through archie client programs.
  77.  
  78.  
  79.   Using the Interactive (telnet) Interface
  80.      In order to use the interactive system you  should  use  the
  81.      following procedure:
  82.  
  83.      1)   telnet to the archie system closest to you. Do not  use
  84.           ftp for this, it will not work.
  85.  
  86.      2)   Login as user  archie  (no  capitals,  no  password  is
  87.           required). The system should print a banner message and
  88.           status report before presenting you  with  the  command
  89.           prompt.
  90.  
  91.      3)   Type help for complete information on the system.
  92.  
  93.      For full details, refer to the section entitled ARCHIE  COM-
  94.      MANDS which appears below.
  95.  
  96.  
  97.   Using the Electronic Mail Interface
  98.      In order to use the email interface, send requests to:
  99.  
  100.           archie@<archie server>
  101.  
  102.      where <archie server> is one of the hosts listed  above,  or
  103.      one  returned by the servers command.  Send the word help in
  104.      a message  to  obtain  a  list  of  available  commands  and
  105.      features.   This is a completely automated interface, acting
  106.      without human intervention.
  107.  
  108.      For full details, refer to the section entitled ARCHIE  COM-
  109.      MANDS which appears below.
  110.  
  111.   Using the archie clients
  112.      The source code for a variety of archie client programs  can
  113.      be  obtained  via  anonymous  ftp(1)  from any of the archie
  114.      server  hosts  listed  above.  They  are   stored   in   the
  115.      archie/clients   or  pub/archie/clients  directories.  These
  116.      clients communicate via the Prospero distributed file system
  117.      protocol  with  archie  servers, which perform the specified
  118.      queries and return the results to the user. Currently  there
  119.      are  command  line and X(1) clients available. These clients
  120.      should run on most Unix platforms as well as  other  systems
  121.      with  compatibility libraries. For more information on Pros-
  122.      pero send your queries to info-prospero-request@isi.edu
  123.  
  124.  
  125.   Communicating with the Database Administrators
  126.      Mail to archie administrators at a particular archie  server
  127.      should be sent to the address
  128.  
  129.           archie-admin@<archie server>
  130.  
  131.      where <archie server> is one of the hosts listed above.
  132.  
  133.      To send mail to  the  implementors  of  the  archie  system,
  134.      please send mail to
  135.  
  136.           archie-group@bunyip.com
  137.  
  138.      The archie server system is a product of Bunyip  Information
  139.      Systems.
  140.  
  141.      Requests for additions to the set of hosts surveyed for  the
  142.      database,  modifications  to  the Software Description Data-
  143.      base, or other administrative matters, should be sent to:
  144.  
  145.           archie-admin@bunyip.com
  146.  
  147. ARCHIE COMMANDS
  148.      In the archie system version 3 the telnet and email  clients
  149.      accept  a  common  set  of commands. Additionally, there are
  150.      specialized commands specfic to the  particular  interfaces.
  151.      See  THE  INTERACTIVE INTERFACE and THE EMAIL INTERFACE sec-
  152.      tions below for a list of these commands.
  153.  
  154.      Note that some archie server sites may disable some  of  the
  155.      commands for reasons particular to their site.  As well some
  156.      sites limit the number of  concurrent  interactive  (telnet)
  157.      sessions to better utilize limited resources.
  158.  
  159.   Commands
  160.      Arguments to commands shown  in  square  brackets  '[]'  are
  161.      optional; all others are mandatory.
  162.  
  163.      find <pattern>
  164.  
  165.      prog <pattern>
  166.           This command produces a list of files matching the pat-
  167.           tern  <pattern>.  The <pattern> may be interpreted as a
  168.           simple substring, a case sensitive substring, an  exact
  169.           string  or a regular expression, depending on the value
  170.           of the search variable.  The output  normally  contains
  171.           such information as the file name that was matched, the
  172.           directory path leading to it, the  site  containing  it
  173.           and  the time at which that site was last updated.  The
  174.           format of  the  output  can  be  selected  through  the
  175.           output format variable.  The results are sorted accord-
  176.           ing to the value of the sortby variable, and  are  lim-
  177.           ited in number by the maxhits variable.
  178.           prog is identical to find.  It is included for backward
  179.           compatibility with older versions of the system.
  180.  
  181.      help [<topic> [<subtopic>] ...]
  182.           Invokes the help system and presents help on the speci-
  183.           fied  topic.   A  list of words is considered to be one
  184.           topic, not a list of individual topics. Thus,
  185.  
  186.                help set maxhits
  187.  
  188.           requests help on the subtopic maxhits of topic set, not
  189.           on  two  separate  topics.  After help is presented the
  190.           user is placed in the help system at the deepest  level
  191.           containing subtopics.
  192.  
  193.           For example, after typing
  194.  
  195.                help set maxhits
  196.  
  197.           and being shown the information for that topic the user
  198.           is placed at the level set in the help hierarchy.
  199.  
  200.      list [<pattern>]
  201.           Produce a list of sites whose contents are contained in
  202.           the archie database. With no argument all the sites are
  203.           listed. If given, the <pattern> argument is interpreted
  204.           as  a  regular  expression  (See  "REGULAR EXPRESSIONS"
  205.           below) against which to match site  names:  only  those
  206.           names  matching  are  printed. The format of the output
  207.           can be selected through the output format variable.
  208.  
  209.           Note that the numerical (IP) address associated with  a
  210.           site  name  was  valid  at  the  last time the site was
  211.           updated in  the  archie  database  but  may  have  been
  212.           changed   subsequently.   Furthermore,  the  listed  IP
  213.           address is the primary address as listed in the  Domain
  214.           Name System (secondary addresses are not stored).
  215.  
  216.           Example:
  217.  
  218.                list
  219.  
  220.           lists all sites in the database, while
  221.  
  222.                list .de$
  223.  
  224.           lists all German sites.
  225.  
  226.      mail <address>
  227.           Mail the result of the last command that produced  out-
  228.           put (eg. find, whatis, list) to <address>. This must be
  229.           a vaid email address.
  230.  
  231.      manpage  [ roff | ascii ]
  232.           Display  the  archie  manual  page  (this  file).   The
  233.           optional  arguments  specify the format of the returned
  234.           document. roff specifies  UNIX  troff(1)  format  while
  235.           ascii  specifies plain, preformatted ASCII output. With
  236.           no arguments it defaults to ascii.
  237.  
  238.      domains
  239.           Asks the current server for  the  list  of  the  archie
  240.           psuedo-domains  that it supports. See the entry for the
  241.           match domain variable  below.  This  command  takes  no
  242.           arguments.
  243.  
  244.           Example:
  245.  
  246.                domains
  247.  
  248.           requests the list of pseudo-domains  from  the  server.
  249.           The result looks (in part) something like this:
  250.  
  251.           africa               Africa               za
  252.           anzac                OZ & New Zealand     au:nz
  253.           asia                 Asia                 kr:hk:sg:jp:cn:my:tw:in
  254.           centralamerica       Central America      sv:gt:hn
  255.           easteurope           Eastern Europe       bg:hu:pl:cs:ro:si:hr
  256.           mideast              Middle East          eg:.il:kw:sa
  257.           northamerica         North America        usa:ca:mx
  258.           scandinavia          Scandinavia          no:dk:se:fi:ee:is
  259.           southamerica         South American       ar:bo:br:cl:co:cr:cu:ec:pe
  260.           usa                  United States        edu:com:mil:gov:us
  261.           westeurope           Western Europe       westeurope1:westeurope2
  262.           world                The World            world1:world2
  263.  
  264.  
  265.           The first column gives the names of pseduo-domains sup-
  266.           ported  by  the  server.  The second gives the "natural
  267.           language" description  of  the  pseudo-domain  and  the
  268.           third   column  is  the  actual  definitions  of  those
  269.           domains. Thus here the "asia" domain  is  comprised  of
  270.           the  Domain Name System country codes for Korea ("kr"),
  271.           Hong Kong ("hk"), Singapore ("sg") etc.  Pseudo-domains
  272.           may also be constructed from other pseudo-domains: thus
  273.           one component  of  the  the  "northamerica"  domain  is
  274.           itself constructed from the "usa" pseudo-domain.
  275.  
  276.      motd Re-display the "message of the day", which is  normally
  277.           printed  when  the user initially logs on to the client
  278.           (in the case of the interactive interface)  or  at  the
  279.           start of the returned message (in the email interface).
  280.  
  281.      servers
  282.           Display  a  list  of  all  publicly  accessible  archie
  283.           servers  worldwide.  The  names  of the hosts, their IP
  284.           addresses and geographical locations are listed.
  285.  
  286.      set <variable-name> [<value>]
  287.           Set the specified variable.  Variables are used to con-
  288.           trol  various  aspects  of the way archie operates; the
  289.           interpretation of <pattern> arguments,  the  format  of
  290.           output  from  various  commands,  etc.  See the section
  291.           below on variables for a description  of  each  one  as
  292.           well as the entries for unset and show.
  293.  
  294.      show [<variable-name> ...]
  295.           Without any argument, display the  status  of  all  the
  296.           user-settable  variables, including such information as
  297.           its type (boolean, numeric, string), whether or not  it
  298.           is  set  and  its current value (if its type requires a
  299.           value).  Otherwise show  the  status  of  each  of  the
  300.           specified arguments.
  301.  
  302.           Example:
  303.  
  304.                show maxhits
  305.  
  306.      site <sitename>
  307.           This command is currently unimplemented under version 3
  308.           of the archie system.
  309.  
  310.      unset variable
  311.           Remove any value associated with  the  specified  vari-
  312.           able.   This  may  cause  counter-intuitive behavior in
  313.           some cases; for example, if maxhits is not  defined  by
  314.           the  user,  the  find  command  will print the internal
  315.           default number of  matches  rather  than  an  unlimited
  316.           number of matches.
  317.  
  318.      version
  319.           Print the current version of the client.
  320.  
  321.      whatis <substring>
  322.           Search the Software Description Database for the  given
  323.           substring,  ignoring  case.   This database consists of
  324.           names and short descriptions of many software packages,
  325.           documents  (like  RFCs  and  educational material), and
  326.           data files stored on the Internet.
  327.  
  328.           Example:
  329.  
  330.                whatis uucp
  331.  
  332.           in part gives as a result:
  333.  
  334.                findpath.sh             UUCP Pathfinder
  335.                logfile-stats           UUCP LOGFILE analyzer
  336.                mapstats                UUCP map  statistics  pro-
  337.                gram
  338.  
  339.   Variable Types
  340.      The behavior of archie can be modified by certain variables,
  341.      the values of which may be changed using the set command, or
  342.      removed entirely by the  unset  command.   There  are  three
  343.      variable types:
  344.  
  345.      boolean        (Set or unset)
  346.  
  347.      numeric        (Integer within a defined range)
  348.  
  349.      string         (String of characters which may or may not be
  350.                     restricted).
  351.  
  352.                     If the value of a string variable should con-
  353.                     tain  leading  or  trailing  spaces  then  it
  354.                     should be quoted.  Two ways of  quoting  text
  355.                     are  to  surround  it  with  a pair of double
  356.                     quotes (`"'), or to precede individual  char-
  357.                     acters  with  a  backslash  (`\').  (A double
  358.                     quote, or a backslash may itself be quoted by
  359.                     preceding  it by a backslash.)  The resulting
  360.                     value is that of the string with  the  quotes
  361.                     stripped off.
  362.  
  363.  
  364.   Numeric Variables
  365.      maxhits
  366.           Allow the find command to generate at most  the  speci-
  367.           fied  number  of  matches  (permissible  range: 0-1000;
  368.           default: 100).
  369.  
  370.           Example:
  371.  
  372.                set maxhits 100
  373.  
  374.           halts prog after 100 matches have been found in total.
  375.  
  376.      maxhitspm
  377.           Across all the anonymous FTP archives on  the  Internet
  378.           (and  even  on  one  single anonymous FTP archive) many
  379.           files will have the same  name.  For  example,  if  you
  380.           search for a very common filename like "README" you can
  381.           get hundreds even thousands of matches. You  can  limit
  382.           the  number  of  files  with the same name through this
  383.           variable. For example,
  384.  
  385.                set maxhitspm 100
  386.  
  387.           tells the system only 100 files  with  the  same  name.
  388.           Note  that the overall maximum number of files returned
  389.           is still controlled with the 'maxhits' variable.
  390.  
  391.      maxmatch
  392.           This variable will limit the number filenames returned.
  393.           For  example, if maxmatch is set to 2 and you perform a
  394.           substring search for the string "etc", and the database
  395.           contains  filenames  "etca", "betc" and "detc" only the
  396.           filenames "etca" and "betc" will be returned.  However,
  397.           depending  on  the  values of maxhitspm and maxhits you
  398.           will get back a  number  of  actual  files  with  those
  399.           names. Example:
  400.  
  401.                set maxmatch 20
  402.  
  403.  
  404.  
  405.      max split size
  406.           Approximate maximum size, in bytes, of  a  file  to  be
  407.           mailed  to  the user.  Any output larger than this will
  408.           be split in pieces of about this size.  This can be set
  409.           by the user in the range 1024 to ~2Gb with a default of
  410.           51200 bytes.
  411.  
  412.   String Variables
  413.      compress
  414.           The kind of data compression the user can specify  when
  415.           mailing back output.  Currently allowed values are none
  416.           and compress (standard UNIX compress(1),withadefaultof
  417.  
  418.      encode
  419.           The type of  post-compression  encoding  the  user  can
  420.           specify  when  mailing  back output.  Currently allowed
  421.           values are none and uuencode, with a default  of  none.
  422.           Note  that  this variable is ignored unless compression
  423.           is enabled (via the compress) variable.
  424.  
  425.      language
  426.           Allows the user to specify the language  in  which  the
  427.           help,  etc.  is presented.  Currently the default value
  428.           is english.
  429.  
  430.      mailto
  431.           If the mail command is issued with no  arguments,  mail
  432.           the output of the last command to the address specified
  433.           by this string variable.  Initially  this  variable  is
  434.           unset.
  435.  
  436.           Example:
  437.  
  438.                set mailto user@frobozz.com
  439.  
  440.           Conventional Internet addressing styles are understood.
  441.           BITNET sites should use the convention:
  442.  
  443.                user@sitename.bitnet
  444.  
  445.           UUCP addresses can be specified as
  446.  
  447.                user@sitename.uucp
  448.  
  449.      match domain
  450.           This variable allows users to  restrict  the  scope  of
  451.           their  search  based  upon  the  Fully Qualified Domain
  452.           Names (FQDN) of the anonymous FTP sites being searched.
  453.           In  this  way,  the  user can specify a colon-separated
  454.           list of domain names to which all returned  sites  must
  455.           match.  Each  component  in  the  list  is taken as the
  456.           rightmost part of the FQDN. For example,
  457.  
  458.                set match domain ca:internic.net:harvard.edu
  459.  
  460.           means that the names of all returned sites must end  in
  461.           "ca"  (Canada),  "internic.net"  (sites in the Internet
  462.           NIC) or "harvard.edu" (sites at Harvard University).
  463.  
  464.           While these are all real domain names, listing all pos-
  465.           sible  combinations  for  say,  the  USA, would quickly
  466.           become tedious (and if you think that is bad, try list-
  467.           ing  all  the  countries on the Internet in Europe). To
  468.           aid in this problem, the archie system has the  concept
  469.           of  pseudo-domains  to  allow  users to use a shorthand
  470.           notation when using this facility. These pseudo-domains
  471.           are defined on a server-by-server basis and you can use
  472.           the domains command to query your  current  server  for
  473.           its list of predefined pseudo-domains.
  474.  
  475.           A pseudo-domain is a list  of  real  DNS  domain  names
  476.           and/or a list of other pseudo-domains. For example, the
  477.           archie administrator on the  server  could  define  the
  478.           pseudo-domain
  479.  
  480.                "usa"
  481.  
  482.                to be
  483.  
  484.                "edu:mil:com:gov:us"
  485.  
  486.           If this definition existed  on  the  server,  then  you
  487.           could
  488.  
  489.                set match domain usa
  490.  
  491.           which would be the same as saying
  492.  
  493.                set match domain edu:mil:com:gov:us
  494.  
  495.           In addition, the server administrator may define
  496.  
  497.                "northamerica"
  498.  
  499.                to be
  500.  
  501.                "usa:ca:mx"
  502.  
  503.           meaning that "northamerica" is composed of the  psuedo-
  504.           domain  "usa"  and  the  real domains "ca" (Canada) and
  505.           "mx" (Mexico). This process can be repeated for 20 lev-
  506.           els  (more  than  sufficient for any naming scheme). By
  507.           using  the  domains  command  you  can  determine  what
  508.           pseudo-domains your current server supports.
  509.  
  510.      match path
  511.           Sometimes you only would like your  search  (using  the
  512.           find)  command  to look for files or directories with a
  513.           certain set of names in their full path.
  514.  
  515.           For example, many  anonymous  FTP  site  administrators
  516.           will  put software packages for the MacIntosh in a path
  517.           containing the name "mac" or "macintosh". Another exam-
  518.           ple  is  when  a document exists in several formats and
  519.           you are only looking for the  PostScript  version.  You
  520.           can guess that the file may end in ".ps" or it maybe in
  521.           a directory called "ps" or "PostScript".
  522.  
  523.           This is usually guesswork, but is is useful to have the
  524.           archie  system  only look for files or directories with
  525.           particular components in their path name.
  526.  
  527.           This variable allows you to do this. The arguments  are
  528.           a  colon-separated  list  of  possible  path  name com-
  529.           ponents. In the last example above, saying
  530.  
  531.                set match path ps:postscript
  532.  
  533.           will restrict the search only to match those  files  or
  534.           directories which have the strings "ps" or "postscript"
  535.           in their path.
  536.  
  537.           The comparison is always  case-insensitive  (regardless
  538.           of the value of the match variable) and there is a log-
  539.           ical OR connecting the components  so  that  the  above
  540.           statement  says:  "find  only  files which have 'ps' OR
  541.           'postscript'  in  their  path".  If  either   component
  542.           matches then the condition is satisfied.
  543.  
  544.      output format
  545.           Affects  the  way  the  output  of  find  and  list  is
  546.           displayed.  User settable, with valid values of machine
  547.           (machine readable format), terse and  verbose,  with  a
  548.           default of verbose.
  549.  
  550.      search
  551.           The type of search done by the find (or prog)  command.
  552.           User  settable  with a range of exact, regex, sub, sub-
  553.           case, exact regex, exact sub and exact subcase  with  a
  554.           default  of  sub.  (The exact <x> types cause it to try
  555.           exact first, then fall back to type <x> if  no  matches
  556.           are found).  The values have the following meanings:
  557.  
  558.           exact
  559.                Exact match (the fastest method).  A match  occurs
  560.                if  the  file  (or directory) name in the database
  561.                corresponds exactly to  the  user-given  substring
  562.                (including case).
  563.  
  564.                For example, this type of search could be used  to
  565.                locate all files called xlock.tar.Z
  566.  
  567.           regex
  568.                Allow user-specified (search) strings to take  the
  569.                form of ed(1) regular expressions.
  570.  
  571.                Note: unless specifically anchored to  the  begin-
  572.                ning  (with  ^)  or  end (with $) of a line, ed(1)
  573.                regular  expressions  (effectively)  have   ``.*''
  574.                prepended  and  appended to them.  For example, it
  575.                is not necessary to type
  576.  
  577.                     find .*xnlock.*
  578.  
  579.                because
  580.  
  581.                     find xnlock
  582.  
  583.                suffices.  In this instance, the  regex  match  is
  584.                equivalent a simple substring match.  Those unfam-
  585.                iliar with regular expressions should refer to the
  586.                section entitled REGULAR EXPRESSIONS which appears
  587.                below.
  588.  
  589.           sub  Substring (case insensitive).  A match  occurs  if
  590.                the  file (or directory) name in the database con-
  591.                tains the user-given substring, without regard  to
  592.                case.
  593.  
  594.                Example:
  595.  
  596.                The pattern:
  597.                     is
  598.  
  599.                matches any of the following:
  600.  
  601.                     islington
  602.                     this
  603.                     poison
  604.  
  605.           subcase
  606.                Substring (case sensitive).  As above, but  taking
  607.                case as significant.
  608.  
  609.                Example:
  610.  
  611.                The pattern:
  612.  
  613.                     TeX
  614.  
  615.                will match:
  616.  
  617.                     LaTeX
  618.  
  619.                but neither of the following:
  620.  
  621.                     Latex
  622.                     TExTroff
  623.  
  624.      server
  625.           the Prospero server to which the client  connects  when
  626.           find or list commands are invoked.  User settable, with
  627.           a default value of localhost.
  628.  
  629.      sortby
  630.           Set the method of sorting to be applied to output  from
  631.           the  find command.  Typing the keyboard interrupt char-
  632.           acter (generally Cntl-C on UNIX hosts) aborts a search.
  633.           Unlike  previous versions of the archie system, version
  634.           3 does not allow partial results.  The output phase may
  635.           be aborted by typing the abort character a second time.
  636.           The  five  permitted  methods  (and  their   associated
  637.           reverse orders) are:
  638.  
  639.           none Unsorted (default; no reverse order, though  rnone
  640.                is accepted)
  641.  
  642.           filename
  643.                Sort  files/directories  by  name,  using  lexical
  644.                order (reverse order: rfilename)
  645.  
  646.           hostname
  647.                Sort on the archive  hostname,  in  lexical  order
  648.                (reverse order: rhostname)
  649.  
  650.           size Sort  by  size,  largest  files/directories  first
  651.                (reverse order: rsize)
  652.  
  653.           time Sort by modification time, with  the  most  recent
  654.                file/directory names first (reverse order: rtime)
  655.  
  656. THE INTERACTIVE (TELNET) INTERFACE
  657.      The interactive interface accepts the following commands and
  658.      variables in addtion to those listed above.
  659.  
  660.   Commands
  661.      stty [[<option> <character>] ...]
  662.           This command allows the user to change the  interpreta-
  663.           tion  of  specified characters, in order to match their
  664.           particular terminal type.  At the moment only erase  is
  665.           recognized  as an <option>.  (Typically, <character> is
  666.           a control character and may be specified as a  pair  of
  667.           characters  (e.g. control-h as the pair '^' followed by
  668.           'h'), the character itself (literal), or  as  a  quoted
  669.           pair or literal.
  670.  
  671.           Without any arguments the command displays the  current
  672.           values of the recognized options.
  673.  
  674.      mail [<address>]
  675.           The output of the previous successful command (i.e.  an
  676.           invocation  of  find, list or whatis that produced out-
  677.           put)  is  mailed  to  the  specified  electronic   mail
  678.           address.  If  no <address> is given the contents of the
  679.           mailto variable are used. If this variable is  not  set
  680.           then  an  error occurs, and nothing is mailed, although
  681.           the output is still available to be mailed.
  682.  
  683.           Example:
  684.  
  685.                mail user1@hello.edu
  686.  
  687.           Conventional Internet addressing styles are understood.
  688.           BITNET sites should use the convention:
  689.  
  690.                user@sitename.bitnet
  691.  
  692.           UUCP addresses can be specified as
  693.  
  694.                user@sitename.uucp
  695.  
  696.      pager
  697.           This command is included only for backward  compatibil-
  698.           ity.   It has the same effect as set pager.  Its use is
  699.           discouraged and it will be removed in a future release.
  700.  
  701.      nopager
  702.           This command is included only for backward  compatibil-
  703.           ity.   It  has the same effect as unset pager.  Its use
  704.           is discouraged and it  will  be  removed  in  a  future
  705.           release.
  706.  
  707.   Variables
  708.      autologout
  709.           Set the length of idle time (in minutes) allowed before
  710.           automatic  logout  (permissible  range: 1-300; default:
  711.           60).
  712.  
  713.           Example:
  714.  
  715.                set autologout 45
  716.  
  717.           logs the user out after 45 minutes of idle time.
  718.  
  719.      pager
  720.           Filter all output through the default  pager  (default:
  721.           unset).   When using the pager you may also want to set
  722.           the term variable to your terminal type (see term vari-
  723.           able).
  724.  
  725.           Example:
  726.  
  727.                set pager
  728.  
  729.      status
  730.           When set this variable will cause the system to  report
  731.           the  position  in  the  queue  of  your  request on the
  732.           server. In addition, it will display the estimated time
  733.           to  completion  of your request. This estimate is based
  734.           in an average of the amount of  times  similar  queries
  735.           have  taken  in  the past several minutes. The variable
  736.           also controls the display of  a  "spinner"  during  the
  737.           database  search,  which indicates that we are awaiting
  738.           results from the Prospero server. Set by default.
  739.  
  740.      term Specify the type of terminal in  use  (and  optionally,
  741.           its  size  in  rows  and columns).  This information is
  742.           used by the pager.
  743.  
  744.           The usage is:
  745.  
  746.                set term <terminal-type> [<#rows> [<#columns>]]
  747.  
  748.           The terminal type is mandatory, but the number of  rows
  749.           and  columns  is optional; specify either rows only, or
  750.           both rows and columns (default: 24 rows,  80  columns).
  751.           The default value for this variable is dumb. However it
  752.           may be set automatically through  the  telnet  protocol
  753.           negotiation.
  754.           Examples:
  755.  
  756.                set term vt100
  757.                set term xterm 60
  758.                set term xterm 24 100
  759.  
  760. THE EMAIL INTERFACE
  761.      The archie email interface currently accepts  the  following
  762.      commands in addition to those listed in the COMMANDS section
  763.      above.
  764.  
  765.      path <address> is an alias for
  766.  
  767.           set mailto <address>
  768.  
  769.      quit Ignore any further lines past this point in  the  mail.
  770.           This  is  generally  not  needed,  but  can  be used to
  771.           prevent the system from interpreting signatures etc. as
  772.           archie commands.
  773.  
  774.      The Subject: line in incoming mail is  processed  as  if  it
  775.      were part of the main message body.
  776.  
  777.      A message not containing a valid request will be treated  as
  778.      a help request.
  779.  
  780. REGULAR EXPRESSIONS
  781.      Regular expressions follow the conventions of the ed(1) com-
  782.      mand,  allowing sophisticated pattern matching.  In the fol-
  783.      lowing discussion, the string containing a  regular  expres-
  784.      sion  will be called the ``pattern'', and the string against
  785.      which  it  is  to  be  matched  is  called  the  ``reference
  786.      string''.  Regular expressions imbue certain characters with
  787.      special meaning, providing a  quoting  mechanism  to  remove
  788.      this special meaning when required.
  789.  
  790.      The rules governing regular expression are:
  791.  
  792.      c    A  character  c  matches  itself  unless  it  has  been
  793.           assigned  a special meaning as listed below.  A special
  794.           character loses its special meaning  when  preceded  by
  795.           the  character  '\'.  This does not apply to '{', which
  796.           is non-special until it is so treated.  Thus,  although
  797.           '*'  normally  has  special  meaning,  the  string '\*'
  798.           matches itself.
  799.  
  800.           Example:
  801.  
  802.           The pattern
  803.  
  804.                acdef
  805.  
  806.           matches any of the following:
  807.  
  808.                s83acdeffff
  809.                acdefsecs
  810.                acdefsecs
  811.  
  812.           but neither of the following:
  813.  
  814.                accdef
  815.                aacde1f
  816.  
  817.           Example:
  818.  
  819.           Normally the characters '*'  and '$' are  special,  but
  820.           the pattern
  821.  
  822.                a\*bse\$
  823.  
  824.           acts as above.  Any reference string containing:
  825.  
  826.                a*bse$
  827.  
  828.           as a substring will be flagged as a match.
  829.  
  830.      .    A period (known as a wildcard  character)  matches  any
  831.           character except the newline character.
  832.  
  833.           Example:
  834.  
  835.           The pattern
  836.  
  837.                ....
  838.  
  839.           will match any 4 characters in  the  reference  string,
  840.           except a newline character.
  841.  
  842.      ^    A caret (^) appearing at the  beginning  of  a  pattern
  843.           requires  that the reference string must start with the
  844.           specified pattern (an escaped caret, or a caret appear-
  845.           ing  elsewhere  in  the  pattern,  is treated as a non-
  846.           special character).
  847.  
  848.           Example:
  849.  
  850.           The pattern
  851.  
  852.                ^efghi
  853.  
  854.           The pattern will match  only  those  reference  strings
  855.           starting  with efghi; thus, it will match either of the
  856.           following:
  857.  
  858.                efghi
  859.                efghijlk
  860.  
  861.           but not:
  862.  
  863.                abcefghi
  864.  
  865.      $    A dollar sign ($) appearing at the  end  of  a  pattern
  866.           requires that the pattern appear at the end of a refer-
  867.           ence string (an escaped dollar sign, or a  dollar  sign
  868.           appearing  elsewhere,  is  treated as a regular charac-
  869.           ter).
  870.  
  871.           Example:
  872.  
  873.           The pattern
  874.  
  875.                efghi$
  876.  
  877.           Will match either of the following:
  878.  
  879.                efghi abcdefghi
  880.  
  881.           but not:
  882.  
  883.                efghijkl
  884.  
  885.      [string]
  886.           Match any single character within  the  brackets.   The
  887.           caret  (^)  has  a  special  meaning if it is the first
  888.           character in the series: the  pattern  will  match  any
  889.           character other than one in the list.
  890.  
  891.           Example:
  892.  
  893.           The pattern
  894.  
  895.                [^abc]
  896.  
  897.           Will match any character except one of:
  898.  
  899.                a
  900.                b
  901.                c
  902.  
  903.           To match a right bracket (]) in the list, put it first,
  904.           as in:
  905.  
  906.                []ab01]
  907.  
  908.           A caret appearing anywhere but the in first position is
  909.           treated as a regular character.
  910.           The minus (-) character is special within square brack-
  911.           ets.   It is used to define a range of ASCII characters
  912.           to be matched.  For example, the pattern:
  913.  
  914.                [a-z]
  915.  
  916.           matches any lower case letter.  The minus can  be  made
  917.           non-special  by  placing  it  first  or last within the
  918.           square brackets.  The characters '$', '*' and  '.'  are
  919.           not special within square brackets.
  920.  
  921.           Example:
  922.  
  923.           The pattern
  924.  
  925.                [ab01]
  926.  
  927.           matches a single occurrence of  a  character  from  the
  928.           set:
  929.  
  930.                a
  931.                b
  932.                0
  933.                1
  934.  
  935.           Example:
  936.  
  937.           The pattern
  938.  
  939.                [^ab01]
  940.  
  941.           will match any single character other than one from the
  942.           set:
  943.  
  944.                a
  945.                b
  946.                0
  947.                1
  948.  
  949.           Example :
  950.  
  951.           The pattern
  952.  
  953.                [a0-9b]
  954.  
  955.           matches one of the characters:
  956.  
  957.                a
  958.                b
  959.  
  960.           or a digit between 0 and 9, inclusive.
  961.           Example :
  962.  
  963.           The pattern
  964.  
  965.                [^a0-9b.$]
  966.  
  967.           matches any single character which is not in the set:
  968.  
  969.                a
  970.                b
  971.                .
  972.                $
  973.  
  974.           or a digit between 0 and 9, inclusive.
  975.  
  976.      *    Match  zero  or  more  occurrences  of  an  immediately
  977.           preceding regular expression.
  978.  
  979.           Example:
  980.  
  981.           The pattern
  982.  
  983.                a*
  984.  
  985.           matches zero or more occurrences of the character:
  986.  
  987.                a
  988.  
  989.           Example:
  990.  
  991.           The pattern
  992.  
  993.                [A-Z]*
  994.  
  995.           matches zero or more  occurrences  of  the  upper  case
  996.           alphabet.
  997.  
  998.      \{m\}
  999.           Match exactly m  occurrences  of  a  preceding  regular
  1000.           expression, where m is a non-negative integer between 0
  1001.           and 255 (inclusive).
  1002.  
  1003.           Example:
  1004.  
  1005.           The pattern
  1006.  
  1007.                ab\{3\}
  1008.  
  1009.           matches any substring in the reference string  consist-
  1010.           ing  of the character `a' followed by exactly three `b'
  1011.           characters.
  1012.  
  1013.      \{m,\}
  1014.           Match at least m occurrences of the  preceding  regular
  1015.           expression.
  1016.  
  1017.           Example:
  1018.  
  1019.           The pattern
  1020.  
  1021.                ab\{3,\}
  1022.  
  1023.           matches any substring in the reference  string  of  the
  1024.           character  `a'  followed  by at least three `b' charac-
  1025.           ters.
  1026.  
  1027.      \{m,n\}
  1028.           Match between m and n occurrences of the preceding reg-
  1029.           ular  expression  (where  n  is  a non-negative integer
  1030.           between 0 and 255, and n>m).
  1031.  
  1032.           Example:
  1033.  
  1034.           The pattern
  1035.  
  1036.                ab\{3,5\}
  1037.  
  1038.           matches any substring in the reference string  consist-
  1039.           ing of the character `a' followed by at least three but
  1040.           at most five `b' characters.
  1041.  
  1042.   Tips for Using Regular Expressions
  1043.      1)   When matching a substring it is not  necessary  to  use
  1044.           the  wildcard character to match the part of the refer-
  1045.           ence string preceding and following the substring.
  1046.  
  1047.           Example:
  1048.  
  1049.           The pattern
  1050.  
  1051.                abcd
  1052.  
  1053.           will match any reference string  containing  this  pat-
  1054.           tern.  It is not necessary to use
  1055.  
  1056.                .*abcd.*
  1057.  
  1058.           as the pattern.
  1059.  
  1060.      2)   In order to constrain a pattern to the entire reference
  1061.           pattern, use the construction:
  1062.  
  1063.                ^pattern$
  1064.  
  1065.      3)   The '[]' operator provides an easy mechanism to  obtain
  1066.           case insensitivity.  For example, to match the word:
  1067.  
  1068.                hello
  1069.  
  1070.           regardless of case, use the pattern:
  1071.  
  1072.                [Hh][Ee][Ll][Ll][Oo]
  1073.  
  1074. THE ARCHIE DATABASE
  1075.      The archie database subsystem maintains a list of about  900
  1076.      Internet anonymous ftp(1) archive sites of approximately 2.1
  1077.      million   files   containing   170   Gigabytes   (that   is,
  1078.      170,000,000,000 bytes) of information.  The current database
  1079.      requires about 250 MB of disk storage.
  1080.  
  1081. SEE ALSO
  1082.      bitftp (1L), ftp(1), telnet(1), archie(1), xarchie(1)
  1083.  
  1084. AUTHORS
  1085.      Bunyip   Information   Systems   Inc.,    Montreal    Canada
  1086.      (info@bunyip.com).
  1087.      Original manual page by R. P. C.  Rodgers,  UCSF  School  of
  1088.      Pharmacy,      San      Francisco,      California     94143
  1089.      (rodgers@maxwell.mmwb.ucsf.edu),   Nelson   H.   F.    Beebe
  1090.      (beebe@math.utah.edu), and Alan Emtage (bajan@bunyip.com).
  1091. archie> 
  1092.