B.4. Read an Input File

The ha_read_infile() function reads the $HA_INFILE input file into the $HA_RES_NAMES variable, which specifies the list of resource names.

ha_read_infile()
{
    HA_RES_NAMES="";
 
    for HA_RESOURCE in `cat ${HA_INFILE}`
    do
        HA_RES_NAMES="${HA_RES_NAMES} ${HA_RESOURCE}";
    done
}