bk gethost(7.3ce)           BitKeeper User's Manual          bk gethost(7.3ce)

NAME
       bk gethost - display machine name

SYNOPSIS
       bk gethost [-nr]

DESCRIPTION
       Outputs  the  fully-qualified name of the machine.  Used primarily when
       doing BitKeeper scripting.

       -n  print the internet address instead of the host

       -r  print the real host name, ignoring $BK_HOST.

NOTES
       On some UNIX systems, it can happen that BitKeeper will output an error
       message  complaining  that localhost is an invalid hostname.  Often the
       fix is to simply add a fully qualified  hostname  to  /etc/hosts.   For
       example:

              ::1  localhost6 yourhost.yourdomain.com

SEE ALSO
       bk getuser

CATEGORY
       Utility

BitKeeper Inc                         1E1                    bk gethost(7.3ce)