OT: sh Hicup
Doug Luurs
doug at borisch.com
Tue Jan 24 06:00:28 PST 2006
This is a bit off Topic, but I need a extra set of eyes this morning ..
It's been a while since I've had to 'nest in sh' .. am I formating these
Nested 'If / elif's right ?
(All of the 'doug's will be replaced with different emails once done)
-- CODE START --
echo '
Daily Build Status Report
Started: '$start'
The Following Team(s) did not generate a Report
-----------------------------------------------
' > $logn
cd /appl/fpmerge
#-----------------------------------------------------------------------
--
for team in " " "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11"\
"12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23"\
"24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" "35"\
"36" "37" "38" "39" "40" "41" "42" "43" "44" "45" "RO"
do
rm /appl/fpmerge/buildlist.sl?
$fpprg/dreport JOB -f BUILDLIST2 -pc blank -s MLW -u -r $team
mv buildlist.sl buildlist.slk
if [ -s $fnme ] ; then
if $team = "06" or $team = "07" or $team = "32" ; then
echo $detl | flmail -a $fnme -s "$subj TeamJB $team" $emlD doug
elif $team = "02" or $team = "04" or $team = "08" or $team = "24" ; then
echo $detl | flmail -a $fnme -s "$subj TeamTC $team" $emlD doug
elif $team = "29" ; then
echo $detl | flmail -a $fnme -s "$subj TeamVB $team" $emlD doug
elif $team = "18" or $team = "20" or $team = "26" or $team = "31" ; then
echo $detl | flmail -a $fnme -s "$subj TeamCC $team" $emlD doug
else
echo $detl | flmail -a $fnme -s "$subj Team $team" $emlD doug
fi
else
echo "Team $team" >> $logn
fi
done
#-----------------------------------------------------------------------
--
flmail -s "Build Status Log" $emlD < $logn
#-----------------------------------------------------------------------
--
-- CODE END --
Thanks
Douglas Luurs
Systems Programmer
Borisch Mfg Corp
Voice: 616-554-9820 x143
Fax: 616-554-9180
If replying to this email, please attach whole message for reference. -
Thank You.
More information about the Filepro-list
mailing list