## Static method (use this):
## System$getHostname(...)
## Don't use the below:
"getHostname"(static, ...)
character
string.
HOST
,
HOSTNAME
, and COMPUTERNAME
.
Second, it checks Sys.info()["nodename"]
for host name details.
Finally, it tries to query the system command uname -n
.
*getUsername()
.