Index

Hostname hostname()

The name of the computer that is running cbicontrol.

Example:
The following example shows how one could use the hostname constant in the cbicontrol initialization script to issue a warning about the lack of an ifhost clause for the computer that cbicontrol is running on.
 ifhost lyra {
   open archive, dir=/scr2/mcs/arc
   open log, dir=/scr2/mcs/log
 } {
   print "I don't know where to put archive and log files on ", $hostname
 }

Martin Shepherd (7-Mar-1999)