For all subcomplexes of the standard CW-structure on any product of circles, we compute the homology of a certain infinite cyclic regular covering space. When the homology is finitely generated, we also compute the cohomology ring. In the special case when the subcomplex is aspherical, this is the homology of a Bestvina-Brady group. We compute the cohomological dimension of each of these groups.