#!/usr/bin/perl #-------------- # Learn the hostname of the clusterExpress master # (we'll cheat and pull it out of $SGE_ROOT/$CELL/common/act_qmaster ... ) #-------------- $MASTER_HOST = `cat /usr/local/unicluster/sge/default/common/act_qmaster`; chomp($MASTER_HOST); print "Debug: master host should be $MASTER_HOST\n"; #-------------- # Edit Univa gmond.conf to add a 2nd config file reference #-------------- open(FH,">>/usr/local/unicluster/etc/gmond.conf") or die "Can't write to gmond.conf, perl says $!\n"; print FH </usr/local/unicluster/etc//gmond-unicast-config.conf") or die "Can't write to gmond.conf, perl says $!\n"; print FH <