SULAHP(1)

NAME
sulahp    - display hostname as network number

SYNOPSIS
sulahp -s hostname [-t timeout]

DESCRIPTION
sulahp takes a hostname as argument and calls gethostbyname(3) to determine the network number of the hostname. The result is simply written to stdout. If gethostbyname fails the program exits, printing nothing.

OPTIONS

-s host
    Lookup the nmae for host

-t timeout
    Terminate program after timeout seconds if gethostbyname is not through by then. timeout=0 means no timeout.

RETURN VALUES
0 on success, h_errno if gethostbyname failed, -2 if operation was timed out, -1 if no host was specified, and errno if some system error occured.

SEE ALSO
gethostbyname(3), sula(1)

AUTHOR
Tano Fotang

COPYLEFT
Public Domain