Manpage logo

bk-gethost - (unknown subject)


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


Updated 2026-06-01 - jenkler.se | uex.se