#!/bin/bash arch=$(uname -i) notInstalled=$(rpm -q xymon-client | grep 'not installed' | wc -l) ## if ((1 == notInstalled )) ## then echo "installation of xymon client starting" if [[ 'i386' == ${arch} ]] then rpm -Uvh http://repo.hpc.lsu.edu/files/xymon-beta/5/xymon-client-4.3.0.beta3-1.i386.rpm fi if [[ 'x86_64' == ${arch} ]] then rpm -Uvh http://repo.hpc.lsu.edu/files/xymon-beta/5/xymon-client-4.3.0.beta3-1.x86_64.rpm fi chkconfig xymon-client on service xymon-client start ## else ## echo "xymon-client already installed -- nothing being done" ## fi