2c6815c9151f6d6908490a4f2e2283dfcbc6ecf5 kuhn Wed Oct 12 10:40:28 2011 -0700 made output recipient loop more explicit so maybe it won't try to mail to null@soe diff --git src/utils/qa/alertBqueue.csh src/utils/qa/alertBqueue.csh index c2113c2..63a68f5 100755 --- src/utils/qa/alertBqueue.csh +++ src/utils/qa/alertBqueue.csh @@ -60,43 +60,46 @@ # check for empty Bqueue if ( "$contacts" == "" ) then # echo "quitting. nothing to do" exit endif # clean up list to get unique names set contacts=`echo $contacts | sed "s/,/ /g" | sed "s/ /\n/g" \ | perl -wpe '$_ = lcfirst($_);' | sort -u` set debug=true set debug=false if ( $debug == "true" ) then echo "\ncontacts $contacts" echo "contactsReal $contacts" - set contacts="larrym kate fan ann Hiram rachel Andy andy bob larry " + # set contacts="larrym kate fan ann Hiram rachel Andy andy bob larry " echo "contactsDebug $contacts" endif # replace common names with email addresses foreach i ( $counter ) set contacts=`echo $contacts | sed "s/$alias[$i] /$email[$i] /g"` if ( $debug == "true" ) then - echo here5 $i + echo dollarI $i echo $alias[$i] echo $email[$i] echo " contacts $contacts" ## send output only to selected people # set contacts="ann kuhn pauline rhead" - set contacts="kuhn" - echo " contacts $contacts" + endif +end + +if ( $debug == "true" ) then cat Bfile exit endif -end -# add ann to list -set contacts="$contacts ann " +# add ann and b0b to list +set contacts="$contacts ann kuhn" +echo contacts $contacts -# cat Bfile | mail -c $contacts'@soe.ucsc.edu' -s "test. ignore " -cat Bfile | mail -c $contacts'@soe.ucsc.edu' -s "B-queue alert" +foreach contact ( $contacts ) + cat Bfile | mail $contact'@soe.ucsc.edu' -s "B-queue alert" +end rm Bfile