


MKHPATH(8)                                             MKHPATH(8)


NNAAMMEE
       mkhpath - produce path data from an /etc/hosts file

SSYYNNOOPPSSIISS
       //uussrr//lliibb//mmaaiill//mmkkhhppaatthh [ --nn _n_e_t_n_a_m_e ] [ --cc _c_o_s_t ] [ --gg
       _g_a_t_e_w_a_y ] [ --dd ] [ -- | _f_i_l_e_n_a_m_e ]

DDEESSCCRRIIPPTTIIOONN
       _M_k_h_p_a_t_h takes as input a _h_o_s_t_s file, in the format of  the
       4.3BSD file _/_e_t_c_/_h_o_s_t_s, and creates path data suitable for
       use by a  _s_m_a_i_l(8)  ppaatthhaalliiaass  router  (see  _s_m_a_i_l(5)  for
       information  on routers).  The output is also suitable for
       merging in with the output of  _p_a_t_h_a_l_i_a_s(8),  and  can  be
       made suitable as input to _p_a_t_h_a_l_i_a_s.

       The  hostnames  _l_o_c_a_l_h_o_s_t  and _l_o_g_h_o_s_t are ignored, as are
       any domain names (names containing dot characters).

       This command is useful for  sending  information  about  a
       network's  connectivity to hosts that are not on that net-
       work.  As a general rule, the smail  ggeetthhoossttbbyynnaammee  router
       driver precludes the need for this tool.

OOPPTTIIOONNSS
       The following options are recognized by _m_k_h_p_a_t_h:

       --nn _n_e_t_n_a_m_e
              Generate  output  which  is  suitable  as  input to
              _p_a_t_h_a_l_i_a_s(8) as a description of an  interconnected
              network named _n_e_t_n_a_m_e connecting together all hosts
              named in the _h_o_s_t_s file.

       --cc _c_o_s_t
              Set the cost for the network gateway to _c_o_s_t.  This
              may  be  any valid _p_a_t_h_a_l_i_a_s cost expression and is
              only useful with the --nn option.

       --gg _g_a_t_e_w_a_y
              Set the gateway for all of the hosts in  the  _h_o_s_t_s
              file  to  _g_a_t_e_w_a_y_.  This can be used either with or
              without the --nn option.  If neither --gg  nor  --nn  are
              used,  then the local host is assumed to connect to
              all of the hosts directly.

       --dd     Only use lines that contain a domain name (i.e.,  a
              name  containing  one  or  more dots) as one of the
              names for a host.  Such domain names are  not  used
              themselves,  but  lines  that  do  not  contain any
              domain names are ignored.

       If a _f_i_l_e_n_a_m_e argument is used, then the host  information
       is  read from this file.  If an argument of -- is specified
       instead, then the standard input is used.   Otherwise  the
       file _/_e_t_c_/_h_o_s_t_s is used to obtain host information.



Local                    31 January 1988                        1





MKHPATH(8)                                             MKHPATH(8)


SSEEEE AALLSSOO
       _p_a_t_h_a_l_i_a_s(8),  _s_m_a_i_l(5),  _s_m_a_i_l(8),  _m_k_p_a_t_h(8),  and _p_a_t_h_-
       _m_e_r_g_e(8).

CCOOPPYYRRIIGGHHTT
       Copyright(C)1987, 1988 Ronald S. Karr and Landon Curt Noll
       Copyright(C)1992 Ronald S. Karr
       See  a  file COPYING, distributed with the source code, or
       type _s_m_a_i_l _-_b_c for distribution  rights  and  restrictions
       associated with this software.















































Local                    31 January 1988                        2


