*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> perl5/Sys::Hostname (3)              
Title
Content
Arch
Section
 

Contents


Sys::Hostname(3)					      Sys::Hostname(3)


NAME    [Toc]    [Back]

     Sys::Hostname - Try every conceivable way to get hostname

SYNOPSIS    [Toc]    [Back]

	 use Sys::Hostname;
	 $host = hostname;

DESCRIPTION    [Toc]    [Back]

     Attempts several methods of getting the system hostname and then caches
     the result.  It tries syscall(SYS_gethostname), `hostname`, `uname	-n`,
     and the file /com/host.  If all that fails	it croaks.

     All nulls,	returns, and newlines are removed from the result.

AUTHOR    [Toc]    [Back]

     David Sundstrom <sunds@asictest.sc.ti.com>

     Texas Instruments


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
hostname IRIX hostname resolution description
mygate OpenBSD default hostname and gateway
myname OpenBSD default hostname and gateway
sys_id IRIX system identification (hostname) file
ethers IRIX ethernet address to hostname database
ypwhich IRIX print the NIS server or map master hostname
ypwhich FreeBSD return hostname of YP server of map master
ypwhich OpenBSD return hostname of YP server or map master
makeDotDesktop IRIX creates the $HOME/.desktop- directory
renamehost IRIX rename the existing hostname in NIS hosts database
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service