The @host Variable

The @host variable is expanded to the value defined by the hostname command (or its equivalent) of the local operating system. The @host variable is especially useful when configuring machines that must execute a machine-specific set of start-up routines.

For example, suppose two machines, fs1.abc.com and fs2.abc.com, use two different, machine-specific versions of an initialization file for an application that they start following a reboot. The name of the initialization file is start. The file start can be stored in DFS and accessed on a machine-specific basis via the @host variable. To access the proper copy of the file, both machines can have symbolic links from /etc/rc/start to /.../abc.com/fs/etc/@host/rc/start. On the first machine, the symbolic link resolves to the file named

/.../abc.com/fs/etc/fs1.abc.com/rc/start

On the second machine, the symbolic link resolves to the file named

/.../abc.com/fs/etc/fs2.abc.com/rc/start