Mwnci hostname() Function

Syntax

hostname()

Description

The hostname() function returns the host name reported by the kernel. If the host name cannot be found, then localhost is returned.

Example

host=hostname()
println("I am server: ", host)


I am server: gladys