Did you know ... Search Documentation:
Pack genutils -- prolog/hostname.pl
PublicShow source

This module provides just one predicate to access the machine hostname. It first looks in the HOSTNAME environment variable. If this is unsuccessful, it call the system hostname command once and keeps the result for reuse.

TODO: what happens if the calling hostname fails?

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 hostname(Arg1)