home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / man / newsaux.man < prev    next >
Text File  |  1991-01-05  |  8KB  |  199 lines

  1.  
  2.  
  3.  
  4. NEWSAUX(8)            MAINTENANCE COMMANDS             NEWSAUX(8)
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      spacefor - check available space for news
  10.      queuelen - get length of outbound-news uucp queues
  11.      sizeof - get size of file(s) for news
  12.      ctime,  getdate  -  convert  dates  to  and  from   internal
  13.      representation for news
  14.      newshostname - get host name for news
  15.      gngp - search text using a newsgroup pattern
  16.      canonhdr - extract header and canonicalize  case  in  header
  17.      keywords
  18.      newslock - do locking for news
  19.  
  20. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  21.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////ssssppppaaaacccceeeeffffoooorrrr filesize location [ site ]
  22.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////qqqquuuueeeeuuuueeeelllleeeennnn site
  23.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////ssssiiiizzzzeeeeooooffff file ...
  24.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////ccccttttiiiimmmmeeee decimaldate
  25.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////ggggeeeettttddddaaaatttteeee printabledate
  26.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////nnnneeeewwwwsssshhhhoooossssttttnnnnaaaammmmeeee
  27.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////ggggnnnnggggpppp [ ----aaaa ] [ ----rrrr ] ngpattern file ...
  28.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////ccccaaaannnnoooonnnnhhhhddddrrrr [ file ] ...
  29.      ////uuuussssrrrr////lllliiiibbbb////nnnneeeewwwwssssbbbbiiiinnnn////nnnneeeewwwwsssslllloooocccckkkk locktemp lockname
  30.  
  31. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  32.      These programs are minor utilities used by various parts  of
  33.      C News.
  34.  
  35.      _S_p_a_c_e_f_o_r determines how many files of size _f_i_l_e_s_i_z_e can  fit
  36.      in  _l_o_c_a_t_i_o_n  (iiiinnnnccccoooommmmiiiinnnngggg, aaaarrrrttttiiiicccclllleeeessss, ccccoooonnnnttttrrrroooollll, aaaarrrrcccchhhhiiiivvvveeee, or oooouuuutttt----
  37.      bbbboooouuuunnnndddd to _s_i_t_e) without cramping things unduly.  The  precise
  38.      locations  of these places, and how low space gets before it
  39.      is unduly  cramped,  are  site-specific.   _S_p_a_c_e_f_o_r  invokes
  40.      _d_f(1) to determine the available space.
  41.  
  42.      _Q_u_e_u_e_l_e_n reports how many news batches _u_u_c_p  has  queued  up
  43.      for _s_i_t_e.
  44.  
  45.      _S_i_z_e_o_f reports the total number of  bytes  in  the  _f_i_l_e(s).
  46.      (This may seem redundant with _l_s -_l, but the format of _l_s -_l
  47.      varies between systems and _s_i_z_e_o_f looks after all that.)
  48.  
  49.      _C_t_i_m_e and _g_e_t_d_a_t_e convert dates in  human-readable  form  to
  50.      (_g_e_t_d_a_t_e)  and from (_c_t_i_m_e) decimal ASCII representations of
  51.      Unix's internal integer dates.  Their  functionality  resem-
  52.      bles that of their namesakes in the C library.
  53.  
  54.      _N_e_w_s_h_o_s_t_n_a_m_e reports the name of this system for  news  pur-
  55.      poses.   This may differ from the name of the particular CPU
  56.      it is run on; a cluster of CPUs sharing  a  filesystem  tree
  57.      would  all  have  the  same  _n_e_w_s_h_o_s_t_n_a_m_e  name.   Typically
  58.      _n_e_w_s_h_o_s_t_n_a_m_e gets the name from /_u_s_r/_l_i_b/_n_e_w_s/_w_h_o_a_m_i;  fail-
  59.      ing  that,  it consults various other possible sources (e.g.
  60.  
  61.  
  62.  
  63. Sun Microsystems    Last change: 13 Jan 1990                    1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. NEWSAUX(8)            MAINTENANCE COMMANDS             NEWSAUX(8)
  71.  
  72.  
  73.  
  74.      the _h_o_s_t_n_a_m_e command).
  75.  
  76.      _G_n_g_p resembles _g_r_e_p except that its search is based on news-
  77.      group   patterns   (e.g.   `comp',   which  matches  `comp',
  78.      `comp.lang', `comp.lang.c', ...;  `comp,!comp.lang.c'  which
  79.      matches `comp' and `comp.lang' but not `comp.lang.c'; etc.).
  80.      _G_n_g_p prints only the line(s) that contain a  substring  that
  81.      matches the _n_g_p_a_t_t_e_r_n.  Normally the substring must run from
  82.      a point in the line to its end.  If the ----aaaa  flag  is  given,
  83.      the  eligible  substrings start at the beginning of the line
  84.      and end at white space or the end of the line.  The ----rrrr  flag
  85.      reverses  the inputs, with patterns coming from the file and
  86.      the argument taken as the line(s).
  87.  
  88.      _C_a_n_o_n_h_d_r takes the concatenation of its input _f_i_l_e(s) (stan-
  89.      dard  input  if  none) as an article, and outputs the header
  90.      from the article  with  header  keywords  canonicalized  for
  91.      easier  processing.  Canonicalization forces all alphabetics
  92.      to lower case except  the  first  letter  of  each  (hyphen-
  93.      separated)  word  in  the  keyword, which is forced to upper
  94.      case.  (One exception:  ``Message-ID'' is the canonical form
  95.      of [e.g.] ``message-id''.)
  96.  
  97.      _N_e_w_s_l_o_c_k makes a link named _l_o_c_k_n_a_m_e to the  file  _l_o_c_k_t_e_m_p,
  98.      and  returns  exit status 0 for success, 1 if the link could
  99.      not be made (typically because  _l_o_c_k_n_a_m_e  already  existed).
  100.      This is used for shell-file locking in C News.  It is a sub-
  101.      set of _l_n(1) except that (a) no error messages are ever pro-
  102.      duced  and  (b)  the  link is guaranteed to fail if _l_o_c_k_n_a_m_e
  103.      already exists.  (Some brain-damaged versions  of  _l_n  help-
  104.      fully  remove _l_o_c_k_n_a_m_e in that case, making them useless for
  105.      locking.)
  106.  
  107. FFFFIIIILLLLEEEESSSS
  108.      /usr/spool/uucp/*       uucp queues
  109.      /usr/lib/news/whoami    news host name
  110.      /usr/lib/news/L.*       lock temporaries
  111.      /usr/lib/news/LOCK*     lock files
  112.  
  113. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  114.      df(1), uucp(1), ls(1),  ctime(3),  getdate(3),  hostname(1),
  115.      grep(1),   news(5),   expire(8),   newsbatch(8),   rnews(8),
  116.      newsmaint(8)
  117.  
  118. HHHHIIIISSSSTTTTOOOORRRRYYYY
  119.      Written at U of Toronto by Henry Spencer and Geoff Collyer.
  120.  
  121. BBBBUUUUGGGGSSSS
  122.      _S_p_a_c_e_f_o_r and _q_u_e_u_e_l_e_n  are  unfortunately  somewhat  system-
  123.      specific,  since _d_f output and _u_u_c_p file layout vary between
  124.      different versions.
  125.  
  126.  
  127.  
  128.  
  129. Sun Microsystems    Last change: 13 Jan 1990                    2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. NEWSAUX(8)            MAINTENANCE COMMANDS             NEWSAUX(8)
  137.  
  138.  
  139.  
  140.      _Q_u_e_u_e_l_e_n probably ought to count bytes rather than  batches,
  141.      but that would make its system-dependency even worse.
  142.  
  143.      The need for _s_i_z_e_o_f and _n_e_w_s_l_o_c_k is a botch.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Sun Microsystems    Last change: 13 Jan 1990                    3
  196.  
  197.  
  198.  
  199.