LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2014, 03:50 AM   #1
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Rep: Reputation: Disabled
working on a script


Hi @druuna,
working on a project,I have prepared a script as per the attached requirement.
could you please advise if i need some changes, or is the script ok?
as of now i have prepared a sample data file, because we will get messages in xml format sometime later.
cat rtview.txt
<row>
<OWNER>San</OWNER>
<AREA>San CONSUMER India</AREA>
<GROUP>San (IN) TRIUMPH</GROUP>
<SERVICE>San (IN) TRIUMPH</SERVICE>
<JOB>BLLBD101</JOB>
<STATE>0.0</STATE>
<LASTUPDATED>1392098457187</LASTUPDATED>
<DESCRIPTION>GOOD RUN Tue 11/02/14 06:00</DESCRIPTION>
<SOURCE>COC</SOURCE>
<CITYPE>JOB</CITYPE>
</row>
<row>
<OWNER>SAN</OWNER>
<AREA>ATL CONSUMER India</AREA>
<GROUP>ATL (IN) TRIUMPH</GROUP>
<SERVICE>ATL (IN) TRIUMPH</SERVICE>
<JOB>BLLBD102</JOB>
<STATE>0.0</STATE>
<LASTUPDATED>1392098457187</LASTUPDATED>
<DESCRIPTION>BAD RUN Tue 11/02/14 06:00</DESCRIPTION>
<SOURCE>COC</SOURCE>
<CITYPE>JOB</CITYPE>
</row>

will get the messages in the above format, hence i prepared rtview.txt.

also i have prepared the Job schedule file
cat set_schd.cfg
#JOB SCHEDULES
BLLBD101 05:30
BLLBD102 06:40
BLLBD103 06:45
DWLBD104 07:15
BLLBD105 08:10
DWLBD106 08:30
DWLBD107 08:35
DWLBD108 09:15
DWLBD109 09:30
DWLBD110 09:35

BLLBD201 13:15
DWLBD202 13:25
DWLBD203 13:30
DWLBD204 14:20
DWLBD205 14:40
DWLBD206 14:45
BLLBD301 17:45
DWLBD302 18:00
DWLBD303 18:05
DWLBD304 18:40
DWLBD305 19:00
DWLBD306 18:30
DWLBD307 19:05

BLLBD401 22:15
DWLBD402 23:00
DWLBD403 23:15
DWLBD404 23:55
DWLBD405 05:30
DWLBD406 06:00

Last edited by santosh0782; 03-07-2014 at 03:23 AM.
 
Old 02-12-2014, 03:55 AM   #2
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Original Poster
Rep: Reputation: Disabled
Hi @druuna,

here is the script i prepared:
Code:
#!/bin/ksh

CONFIG_DIR="/home/www/BCARD/scripts/settlement"
SCHED_CONFIG="$CONFIG_DIR/settlement_schd.cfg"
#HOLIDAYS_FILE="$CONFIG_DIR/holidays"

#---------------------------------------------------------------#
RTVIEW="/home/www/BCARD/scripts/settlement/rtview.txt"

COLOR_RED="FF0000"
COLOR_GREEN="8BBA00"
COLOR_GRAY="7D7D7D"
JBCOLORS_FILE="jbcolors"

settlement_xml="/home/www/BCARD/data/settlement/dp_1a.TMP.xml"

#---------------------------------------------------------------#
cd $CONFIG_DIR

#---------------------------------------------------------------#
#JOB LIST
#---------------------------------------------------------------#
JBLIST_FULL[0]="BLLBD101"
JBLIST_FULL[1]="BLLBD102"
JBLIST_FULL[2]="BLLBD103"
JBLIST_FULL[3]="DWLBD104"
JBLIST_FULL[4]="BLLBD105"
JBLIST_FULL[5]="DWLBD106"
JBLIST_FULL[6]="DWLBD107"
JBLIST_FULL[7]="DWLBD108"
JBLIST_FULL[8]="DWLBD109"
JBLIST_FULL[9]="DWLBD110"

JBLIST_FULL[10]="BLLBD201"
JBLIST_FULL[11]="DWLBD202"
JBLIST_FULL[12]="DWLBD203"
JBLIST_FULL[13]="DWLBD204"
JBLIST_FULL[14]="DWLBD205"
JBLIST_FULL[15]="DWLBD206"
JBLIST_FULL[16]="BLLBD301"
JBLIST_FULL[17]="DWLBD302"
JBLIST_FULL[18]="DWLBD303"
JBLIST_FULL[19]="DWLBD304"
JBLIST_FULL[20]="DWLBD305"
JBLIST_FULL[21]="DWLBD306"
JBLIST_FULL[22]="DWLBD307"

JBLIST_FULL[23]="BLLBD401"
JBLIST_FULL[24]="DWLBD402"
JBLIST_FULL[25]="DWLBD403"
JBLIST_FULL[26]="DWLBD404"
JBLIST_FULL[27]="DWLBD405"
JBLIST_FULL[28]="DWLBD406"

#---------------------------------------------------------------#
#Functions

set_color()
{
        jb_name=$1
        jb_color=$2

        echo "jb_name=$jb_name"
        echo "jb_color=$jb_color"

        case $jb_name in

        "BLLBD101")
                        BLLBD101_COLOR="$jb_color" ;;
        "BLLBD102")
                        BLLBD102_COLOR="$jb_color" ;;
        "BLLBD103")
                        BLLBD103_COLOR="$jb_color" ;;
        "DWLBD104")
                        DWLBD104_COLOR="$jb_color" ;;
        "BLLBD105")
                        BLLBD105_COLOR="$jb_color" ;;
        "DWLBD106")
                        DWLBD106_COLOR="$jb_color" ;;
	"DWLBD107")
                        DWLBD107_COLOR="$jb_color" ;;
        "DWLBD108")
                        DWLBD108_COLOR="$jb_color" ;;
        "DWLBD109")
                        DWLBD109_COLOR="$jb_color" ;;
        "DWLBD110")
                        DWLBD110_COLOR="$jb_color" ;;
        "BLLBD201")
                        BLLBD201_COLOR="$jb_color" ;;
        "DWLBD202")
                        DWLBD202_COLOR="$jb_color" ;;
        "DWLBD203")
                        DWLBD203_COLOR="$jb_color" ;;
        "DWLBD204")
                        DWLBD204_COLOR="$jb_color" ;;
        "DWLBD205")
                        DWLBD205_COLOR="$jb_color" ;;
        "DWLBD206")
                        DWLBD206_COLOR="$jb_color" ;;
        "BLLBD301")
                        BLLBD301_COLOR="$jb_color" ;;
        "DWLBD302")
                        DWLBD302_COLOR="$jb_color" ;;
        "DWLBD303")
                        DWLBD303_COLOR="$jb_color" ;;
        "DWLBD304")
                        DWLBD304_COLOR="$jb_color" ;;
        "DWLBD305")
                        DWLBD305_COLOR="$jb_color" ;;
        "DWLBD306")
                        DWLBD306_COLOR="$jb_color" ;;
        "DWLBD307")
                        DWLBD307_COLOR="$jb_color" ;;
        "BLLBD401")
                        BLLBD401_COLOR="$jb_color" ;;
        "DWLBD402")
                        DWLBD402_COLOR="$jb_color" ;;
        "DWLBD403")
                        DWLBD403_COLOR="$jb_color" ;;
        "DWLBD404")
                        DWLBD404_COLOR="$jb_color" ;;
	"DWLBD405")
                        DWLBD405_COLOR="$jb_color" ;;
        "DWLBD406")
                        DWLBD406_COLOR="$jb_color" ;;
        esac

echo "color set: $jb_color"

}

read_colors()
{
        echo "Reading colors"
        BLLBD101_COLOR=$(grep "BLLBD101" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD101_COLOR" ]]
        then
                BLLBD101_COLOR="$COLOR_GREEN"
        fi

        BLLBD102_COLOR=$(grep "BLLBD102" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD102_COLOR" ]]
        then
                BLLBD102_COLOR="$COLOR_GREEN"
        fi

        BLLBD103_COLOR=$(grep "BLLBD103" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD103_COLOR" ]]
        then
                BLLBD103_COLOR="$COLOR_GREEN"
        fi

        DWLBD104_COLOR=$(grep "DWLBD104" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD104_COLOR" ]]
        then
                DWLBD104_COLOR="$COLOR_GREEN"
        fi

        BLLBD105_COLOR=$(grep "BLLBD105" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD105_COLOR" ]]
        then
		BLLBD105_COLOR="$COLOR_GREEN"
        fi

        DWLBD106_COLOR=$(grep "DWLBD106" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD106_COLOR" ]]
        then
                DWLBD106_COLOR="$COLOR_GREEN"
        fi

        DWLBD107_COLOR=$(grep "DWLBD107" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD107_COLOR" ]]
        then
                DWLBD107_COLOR="$COLOR_GREEN"
        fi

        DWLBD108_COLOR=$(grep "DWLBD108" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD108_COLOR" ]]
        then
                DWLBD108_COLOR="$COLOR_GREEN"
        fi

        DWLBD109_COLOR=$(grep "DWLBD109" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD109_COLOR" ]]
        then
                DWLBD109_COLOR="$COLOR_GREEN"
        fi

        DWLBD110_COLOR=$(grep "DWLBD110" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD110_COLOR" ]]
        then
                DWLBD110_COLOR="$COLOR_GREEN"
        fi

        BLLBD201_COLOR=$(grep "BLLBD201" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD201" ]]
        then
                BLLBD201_COLOR="$COLOR_GREEN"
        fi

        DWLBD202_COLOR=$(grep "DWLBD202" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD202" ]]
        then
                DWLBD202_COLOR="$COLOR_GREEN"
	 fi

        DWLBD203_COLOR=$(grep "DWLBD203" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD203" ]]
        then
                DWLBD203_COLOR="$COLOR_GREEN"
        fi

        DWLBD204_COLOR=$(grep "DWLBD204" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD204" ]]
        then
                DWLBD204_COLOR="$COLOR_GREEN"
        fi

        DWLBD205_COLOR=$(grep "DWLBD205" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD205" ]]
        then
                DWLBD205_COLOR="$COLOR_GREEN"
        fi

        DWLBD206_COLOR=$(grep "DWLBD206" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD206" ]]
        then
                DWLBD206_COLOR="$COLOR_GREEN"
        fi

        BLLBD301_COLOR=$(grep "BLLBD301" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD301" ]]
        then
                BLLBD301_COLOR="$COLOR_GREEN"
        fi

        DWLBD302_COLOR=$(grep "DWLBD302" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD302" ]]
        then
                DWLBD302_COLOR="$COLOR_GREEN"
        fi

        DWLBD303_COLOR=$(grep "DWLBD303" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD303" ]]
        then
                DWLBD303_COLOR="$COLOR_GREEN"
        fi
	DWLBD304_COLOR=$(grep "DWLBD304" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD304" ]]
        then
                DWLBD304_COLOR="$COLOR_GREEN"
        fi

        DWLBD305_COLOR=$(grep "DWLBD305" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD305" ]]
        then
                DWLBD305_COLOR="$COLOR_GREEN"
        fi

        DWLBD306_COLOR=$(grep "DWLBD306" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD306" ]]
        then
                DWLBD306_COLOR="$COLOR_GREEN"
        fi

        DWLBD307_COLOR=$(grep "DWLBD307" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD307" ]]
        then
                DWLBD307_COLOR="$COLOR_GREEN"
        fi

        BLLBD401_COLOR=$(grep "BLLBD401" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$BLLBD401" ]]
        then
                BLLBD401_COLOR="$COLOR_GREEN"
        fi

        DWLBD402_COLOR=$(grep "DWLBD402" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD402" ]]
        then
                DWLBD402_COLOR="$COLOR_GREEN"
        fi

        DWLBD403_COLOR=$(grep "DWLBD403" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD403" ]]
        then
                DWLBD403_COLOR="$COLOR_GREEN"
        fi
	DWLBD404_COLOR=$(grep "DWLBD404" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD404" ]]
        then
                DWLBD404_COLOR="$COLOR_GREEN"
        fi

        DWLBD405_COLOR=$(grep "DWLBD405" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD405" ]]
        then
                DWLBD405_COLOR="$COLOR_GREEN"
        fi

        DWLBD406_COLOR=$(grep "DWLBD406" $CONFIG_DIR/$JBCOLORS_FILE | cut -d':' -f2)
        if [[ -z "$DWLBD406" ]]
        then
                DWLBD406_COLOR="$COLOR_GREEN"
        fi


        echo "${JBLIST_FULL[0]}:$BLLBD101_COLOR"
        echo "${JBLIST_FULL[1]}:$BLLBD102_COLOR"
        echo "${JBLIST_FULL[2]}:$BLLBD103_COLOR"
        echo "${JBLIST_FULL[3]}:$DWLBD104_COLOR"
        echo "${JBLIST_FULL[4]}:$BLLBD105_COLOR"
        echo "${JBLIST_FULL[5]}:$DWLBD106_COLOR"
        echo "${JBLIST_FULL[6]}:$DWLBD107_COLOR"
        echo "${JBLIST_FULL[7]}:$DWLBD108_COLOR"
        echo "${JBLIST_FULL[8]}:$DWLBD109_COLOR"
        echo "${JBLIST_FULL[9]}:$DWLBD110_COLOR"

        echo "${JBLIST_FULL[10]}:$BLLBD201_COLOR"
        echo "${JBLIST_FULL[11]}:$DWLBD202_COLOR"
        echo "${JBLIST_FULL[12]}:$DWLBD203_COLOR"
        echo "${JBLIST_FULL[13]}:$DWLBD204_COLOR"
        echo "${JBLIST_FULL[14]}:$DWLBD205_COLOR"
        echo "${JBLIST_FULL[15]}:$DWLBD206_COLOR"

        echo "${JBLIST_FULL[16]}:$BLLBD301_COLOR"
        echo "${JBLIST_FULL[17]}:$DWLBD302_COLOR"
        echo "${JBLIST_FULL[18]}:$DWLBD303_COLOR"
        echo "${JBLIST_FULL[19]}:$DWLBD304_COLOR"
        echo "${JBLIST_FULL[20]}:$DWLBD305_COLOR"
	 echo "${JBLIST_FULL[21]}:$DWLBD306_COLOR"
        echo "${JBLIST_FULL[22]}:$DWLBD307_COLOR"

        echo "${JBLIST_FULL[23]}:$BLLBD401_COLOR"
        echo "${JBLIST_FULL[24]}:$DWLBD402_COLOR"
        echo "${JBLIST_FULL[25]}:$DWLBD403_COLOR"
        echo "${JBLIST_FULL[26]}:$DWLBD404_COLOR"
        echo "${JBLIST_FULL[27]}:$DWLBD405_COLOR"
        echo "${JBLIST_FULL[28]}:$DWLBD406_COLOR"

}

write_colors()
{
        echo "Writing colors"
        echo "${JBLIST_FULL[0]}:$BLLBD101_COLOR" > $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[1]}:$BLLBD102_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[2]}:$BLLBD103_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[3]}:$DWLBD104_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[4]}:$BLLBD105_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[5]}:$DWLBD106_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[6]}:$DWLBD107_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[7]}:$DWLBD108_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[8]}:$DWLBD109_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[9]}:$DWLBD110_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE

        echo "${JBLIST_FULL[10]}:$BLLBD201_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[11]}:$DWLBD202_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[12]}:$DWLBD203_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[13]}:$DWLBD204_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[14]}:$DWLBD205_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[15]}:$DWLBD206_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE

        echo "${JBLIST_FULL[16]}:$BLLBD301_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[17]}:$DWLBD302_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[18]}:$DWLBD303_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[19]}:$DWLBD304_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[20]}:$DWLBD305_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[21]}:$DWLBD306_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[22]}:$DWLBD307_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
	echo "${JBLIST_FULL[23]}:$BLLBD401_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[24]}:$DWLBD402_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[25]}:$DWLBD403_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[26]}:$DWLBD404_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[27]}:$DWLBD405_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
        echo "${JBLIST_FULL[28]}:$DWLBD406_COLOR" >> $CONFIG_DIR/$JBCOLORS_FILE
}

set_date_time()
{
for JB1 in "${JBLIST_FULL[@]}"
do

jb_rtv_date1=$(grep -A3 "$JB1" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $5}')
jb_rtv_time1=$(grep -A3 "$JB1" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $6}')
jb_rtv_status=$(grep -A3 "$JB1" "$RTVIEW" | tail -1 | tr '[<>]' ' '|awk -F ' ' '{ print $2,$3 }')
jb_rtv_day=$(grep -A3 "$JB1" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $4}')
jb_rtv_hour=$(grep -A3 "$JB1" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $6}'|cut -c1-2)
jb_rtv_min=$(grep -A3 "$JB1" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $6}'|cut -c4-5)

        case $JB1 in
        "BLLBD101")
                        BLLBD101_DATE="$jb_rtv_date1"
                        BLLBD101_TIME="$jb_rtv_time1"
                        BLLBD101_STATUS="$jb_rtv_status"
                        BLLBD101_DAY="$jb_rtv_day"
                        BLLBD101_HOUR="$jb_rtv_hour"
                        BLLBD101_MIN="$jb_rtv_min" ;;
        "BLLBD102")
                        BLLBD102_DATE="$jb_rtv_date1"
                        BLLBD102_TIME="$jb_rtv_time1"
                        BLLBD102_STATUS="$jb_rtv_status"
                        BLLBD102_DAY="$jb_rtv_day"
                        BLLBD102_HOUR="$jb_rtv_hour"
                        BLLBD102_MIN="$jb_rtv_min" ;;
        "BLLBD103")
                        BLLBD103_DATE="$jb_rtv_date1"
                        BLLBD103_TIME="$jb_rtv_time1"
                        BLLBD103_STATUS="$jb_rtv_status"
                        BLLBD103_DAY="$jb_rtv_day"
                        BLLBD103_HOUR="$jb_rtv_hour"
                        BLLBD103_MIN="$jb_rtv_min" ;;
	"DWLBD104")
                        DWLBD104_DATE="$jb_rtv_date1"
                        DWLBD104_TIME="$jb_rtv_time1"
                        DWLBD104_STATUS="$jb_rtv_status"
                        DWLBD104_DAY="$jb_rtv_day"
                        DWLBD104_HOUR="$jb_rtv_hour"
                        DWLBD104_MIN="$jb_rtv_min" ;;
        "BLLBD105")
                        BLLBD105_DATE="$jb_rtv_date1"
                        BLLBD105_TIME="$jb_rtv_time1"
                        BLLBD105_STATUS="$jb_rtv_status"
                        BLLBD105_DAY="$jb_rtv_day"
                        BLLBD105_HOUR="$jb_rtv_hour"
                        BLLBD105_MIN="$jb_rtv_min" ;;
        "DWLBD106")
                        DWLBD106_DATE="$jb_rtv_date1"
                        DWLBD106_TIME="$jb_rtv_time1"
                        DWLBD106_STATUS="$jb_rtv_status"
                        DWLBD106_DAY="$jb_rtv_day"
                        DWLBD106_HOUR="$jb_rtv_hour"
                        DWLBD106_MIN="$jb_rtv_min" ;;
        "DWLBD107")
                        DWLBD107_DATE="$jb_rtv_date1"
                        DWLBD107_TIME="$jb_rtv_time1"
                        DWLBD107_STATUS="$jb_rtv_status"
                        DWLBD107_DAY="$jb_rtv_day"
                        DWLBD107_HOUR="$jb_rtv_hour"
                        DWLBD107_MIN="$jb_rtv_min" ;;
        "DWLBD108")
                        DWLBD108_DATE="$jb_rtv_date1"
                        DWLBD108_TIME="$jb_rtv_time1"
                        DWLBD108_STATUS="$jb_rtv_status"
                        DWLBD108_DAY="$jb_rtv_day"
                        DWLBD108_HOUR="$jb_rtv_hour"
                        DWLBD108_MIN="$jb_rtv_min" ;;
        "DWLBD109")
                        DWLBD109_DATE="$jb_rtv_date1"
                        DWLBD109_TIME="$jb_rtv_time1"
                        DWLBD109_STATUS="$jb_rtv_status"
                        DWLBD109_DAY="$jb_rtv_day"
                        DWLBD109_HOUR="$jb_rtv_hour"
                        DWLBD109_MIN="$jb_rtv_min" ;;
        "DWLBD110")
			DWLBD110_DATE="$jb_rtv_date1"
                        DWLBD110_TIME="$jb_rtv_time1"
                        DWLBD110_STATUS="$jb_rtv_status"
                        DWLBD110_DAY="$jb_rtv_day"
                        DWLBD110_HOUR="$jb_rtv_hour"
                        DWLBD110_MIN="$jb_rtv_min" ;;
        "BLLBD201")
                        BLLBD201_DATE="$jb_rtv_date1"
                        BLLBD201_TIME="$jb_rtv_time1"
                        BLLBD201_STATUS="$jb_rtv_status"
                        BLLBD201_DAY="$jb_rtv_day"
                        BLLBD201_HOUR="$jb_rtv_hour"
                        BLLBD201_MIN="$jb_rtv_min" ;;
        "DWLBD202")
                        DWLBD202_DATE="$jb_rtv_date1"
                        DWLBD202_TIME="$jb_rtv_time1"
                        DWLBD202_STATUS="$jb_rtv_status"
                        DWLBD202_DAY="$jb_rtv_day"
                        DWLBD202_HOUR="$jb_rtv_hour"
                        DWLBD202_MIN="$jb_rtv_min" ;;
        "DWLBD203")
                        DWLBD203_DATE="$jb_rtv_date1"
                        DWLBD203_TIME="$jb_rtv_time1"
                        DWLBD203_STATUS="$jb_rtv_status"
                        DWLBD203_DAY="$jb_rtv_day"
                        DWLBD203_HOUR="$jb_rtv_hour"
                        DWLBD203_MIN="$jb_rtv_min" ;;
        "DWLBD204")
                        DWLBD204_DATE="$jb_rtv_date1"
                        DWLBD204_TIME="$jb_rtv_time1"
                        DWLBD204_STATUS="$jb_rtv_status"
                        DWLBD204_DAY="$jb_rtv_day"
                        DWLBD204_HOUR="$jb_rtv_hour"
                        DWLBD204_MIN="$jb_rtv_min" ;;
        "DWLBD205")
                        DWLBD205_DATE="$jb_rtv_date1"
                        DWLBD205_TIME="$jb_rtv_time1"
                        DWLBD205_STATUS="$jb_rtv_status"
                        DWLBD205_DAY="$jb_rtv_day"
                        DWLBD205_HOUR="$jb_rtv_hour"
                        DWLBD205_MIN="$jb_rtv_min" ;;
        "DWLBD206")
			DWLBD206_DATE="$jb_rtv_date1"
                        DWLBD206_TIME="$jb_rtv_time1"
                        DWLBD206_STATUS="$jb_rtv_status"
                        DWLBD206_DAY="$jb_rtv_day"
                        DWLBD206_HOUR="$jb_rtv_hour"
                        DWLBD206_MIN="$jb_rtv_min" ;;
        "BLLBD301")
                        BLLBD301_DATE="$jb_rtv_date1"
                        BLLBD301_TIME="$jb_rtv_time1"
                        BLLBD301_STATUS="$jb_rtv_status"
                        BLLBD301_DAY="$jb_rtv_day"
                        BLLBD301_HOUR="$jb_rtv_hour"
                        BLLBD301_MIN="$jb_rtv_min" ;;
        "DWLBD302")
                        DWLBD302_DATE="$jb_rtv_date1"
                        DWLBD302_TIME="$jb_rtv_time1"
                        DWLBD302_STATUS="$jb_rtv_status"
                        DWLBD302_DAY="$jb_rtv_day"
                        DWLBD302_HOUR="$jb_rtv_hour"
                        DWLBD302_MIN="$jb_rtv_min" ;;
        "DWLBD303")
                        DWLBD303_DATE="$jb_rtv_date1"
                        DWLBD303_TIME="$jb_rtv_time1"
                        DWLBD303_STATUS="$jb_rtv_status"
                        DWLBD303_DAY="$jb_rtv_day"
                        DWLBD303_HOUR="$jb_rtv_hour"
                        DWLBD303_MIN="$jb_rtv_min" ;;
        "DWLBD304")
                        DWLBD304_DATE="$jb_rtv_date1"
                        DWLBD304_TIME="$jb_rtv_time1"
                        DWLBD304_STATUS="$jb_rtv_status"
                        DWLBD304_DAY="$jb_rtv_day"
                        DWLBD304_HOUR="$jb_rtv_hour"
                        DWLBD304_MIN="$jb_rtv_min" ;;
        "DWLBD305")
                        DWLBD305_DATE="$jb_rtv_date1"
                        DWLBD305_TIME="$jb_rtv_time1"
                        DWLBD305_STATUS="$jb_rtv_status"
                        DWLBD305_DAY="$jb_rtv_day"
                        DWLBD305_HOUR="$jb_rtv_hour"
                        DWLBD305_MIN="$jb_rtv_min" ;;
        "DWLBD306")
			DWLBD306_DATE="$jb_rtv_date1"
                        DWLBD306_TIME="$jb_rtv_time1"
                        DWLBD306_STATUS="$jb_rtv_status"
                        DWLBD306_DAY="$jb_rtv_day"
                        DWLBD306_HOUR="$jb_rtv_hour"
                        DWLBD306_MIN="$jb_rtv_min" ;;
        "DWLBD307")
                        DWLBD307_DATE="$jb_rtv_date1"
                        DWLBD307_TIME="$jb_rtv_time1"
                        DWLBD307_STATUS="$jb_rtv_status"
                        DWLBD307_DAY="$jb_rtv_day"
                        DWLBD307_HOUR="$jb_rtv_hour"
                        DWLBD307_MIN="$jb_rtv_min" ;;
        "BLLBD401")
                        BLLBD401_DATE="$jb_rtv_date1"
                        BLLBD401_TIME="$jb_rtv_time1"
                        BLLBD401_STATUS="$jb_rtv_status"
                        BLLBD401_DAY="$jb_rtv_day"
                        BLLBD401_HOUR="$jb_rtv_hour"
                        BLLBD401_MIN="$jb_rtv_min" ;;
        "DWLBD402")
                        DWLBD402_DATE="$jb_rtv_date1"
                        DWLBD402_TIME="$jb_rtv_time1"
                        DWLBD402_STATUS="$jb_rtv_status"
                        DWLBD402_DAY="$jb_rtv_day"
                        DWLBD402_HOUR="$jb_rtv_hour"
                        DWLBD402_MIN="$jb_rtv_min" ;;
        "DWLBD403")
                        DWLBD403_DATE="$jb_rtv_date1"
                        DWLBD403_TIME="$jb_rtv_time1"
                        DWLBD403_STATUS="$jb_rtv_status"
                        DWLBD403_DAY="$jb_rtv_day"
                        DWLBD403_HOUR="$jb_rtv_hour"
                        DWLBD403_MIN="$jb_rtv_min" ;;
        "DWLBD404")
                        DWLBD404_DATE="$jb_rtv_date1"
                        DWLBD404_TIME="$jb_rtv_time1"
                        DWLBD404_STATUS="$jb_rtv_status"
                        DWLBD404_DAY="$jb_rtv_day"
                        DWLBD404_HOUR="$jb_rtv_hour"
                        DWLBD404_MIN="$jb_rtv_min" ;;
        "DWLBD405")
			DWLBD405_DATE="$jb_rtv_date1"
                        DWLBD405_TIME="$jb_rtv_time1"
                        DWLBD405_STATUS="$jb_rtv_status"
                        DWLBD405_DAY="$jb_rtv_day"
                        DWLBD405_HOUR="$jb_rtv_hour"
                        DWLBD405_MIN="$jb_rtv_min" ;;
        "DWLBD406")
                        DWLBD406_DATE="$jb_rtv_date1"
                        DWLBD406_TIME="$jb_rtv_time1"
                        DWLBD406_STATUS="$jb_rtv_status"
                        DWLBD406_DAY="$jb_rtv_day"
                        DWLBD406_HOUR="$jb_rtv_hour"
                        DWLBD406_MIN="$jb_rtv_min" ;;
        esac

echo "JB1:$JB1; jb_rtv_date1 $jb_rtv_date1; jb_rtv_time1 $jb_rtv_time1; jb_rtv_status $jb_rtv_status; jb_rtv_day $jb_rtv_day; jb_rtv_hour $jb_rtv_hour; jb_rtv_min $jb_rtv_min"

done

}

# -------------------------------------------------------------------------- #
# date and time
currDay=$( date +'%a' )          # Mon -> Sun
currDate1=$( date +'%d/%m/%y' )  # DD/MM/YY
currDate2=$( date +'%Y/%m/%d' )  # YYYY/MM/DD
currTime=$( date +'%R' )         # HH:MM
currTimeSec=$( date +'%T' )      # HH:MM:SS
currHour=$( date +'%H' )         # HH
currMin=$( date +'%M' )          # MM
# -------------------------------------------------------------------------- #
#Here need to check, if the Job has run according to the set_schd.cfg file(Job Run Times are mentioned in this file)
#also we need to check,sometimes job doesn't run on scheduled time,but whenever it runs it should check if it is bad run or good run.
#also need to make sure, if upstream job has bad run(RED Status), downstream job after their schedule time should be RED(because upstream job is in RED and we have not received any message for downstream job).

for JOB in "${JBLIST_FULL[@]}"
do
jb_rtv_date1=$(grep -A3 "$JOB" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $5}')
jb_rtv_time1=$(grep -A3 "$JOB" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $6}')
jb_rtv_status=$(grep -A3 "$JOB" "$RTVIEW" | tail -1 | tr '[<>]' ' '|awk -F ' ' '{ print $2,$3 }')
jb_rtv_day=$(grep -A3 "$JOB" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $4}')
jb_rtv_hour=$(grep -A3 "$JOB" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $6}'|cut -c1-2)
jb_rtv_min=$(grep -A3 "$JOB" "$RTVIEW" | tail -1 | tr '[<>]' ' '| awk  '{print $6}'|cut -c4-5)

# get specific info from set_schd.cfg
mtchTime=$( grep "$JOB" ${scriptDir}/${set_schd.cfg} | grep "${currTime}" )

         # do checks and generate output accordingly
if [[ "${sys_curr_day}" != "Sat" ]] && [[ "${sys_curr_day}" != "Sun" ]]
then

        if [[ "${currDate1}" == "${jb_rtv_date1}" ]]
        then
                if [[ -n "${mtchTime}" ]]
                then
                        echo "  ${currTime} is available in configuration file"

                        if [[ "${currTime}" == "${jb_rtv_time1}" && "${jb_rtv_status}" == "GOOD RUN" ]]
                        then
                                echo " entry found in RTView: GREEN...!!!"
                                set_color "$JOB" "$COLOR_GREEN"


                        elif [[ "${currTime}" == "${jb_rtv_time1}"  && "${jb_rtv_status}}" == "BAD RUN" ]]
                        then
                                echo " entry found in RTView: RED...!!!"
                                set_color "$JOB" "$COLOR_RED"

                        fi
                elif [[ -z "${mtchTime}" ]]
                then
                        echo "  ${currTime} is not available in configuration file"
                        if [[ "${currTime}" == "${jb_rtv_time1}" && "${jb_rtv_status}" == "GOOD RUN" ]]
                        then
                                echo " entry found in RTView: GREEN...!!!"
                                set_color "$JOB" "$COLOR_GREEN"
			elif [[ "${currTime}" == "${jb_rtv_time1}"  && "${jb_rtv_status}" == "BAD RUN" ]]
                        then
                                echo " entry found in RTView: RED...!!!"
                                set_color "$JOB" "$COLOR_RED"
                        fi
                fi
        fi
fi

done
 
Old 02-12-2014, 04:03 AM   #3
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Original Poster
Rep: Reputation: Disabled
code continued....
Code:
write_val_xml()
{
echo "writing val xml"
echo " <chart manageResize='1' bgAlpha='50' pallette='1' bgColor='FFFFFF' bgAlpha='45' bgRatio='50,45' bgAngle='90'>" >settlement_xml
echo " <annotations>" >>settlement_xml
echo "        <annotationGroup id='Grp1' >" >>settlement_xml
echo " <annotation type='text' x='230' y='30' fontSize='20' bold='1' label='AFTS - 1' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif'/>" >>settlement_xml
                                                                <!-- AFTS - 1 -->
echo "                <annotation type='line' x='20' y='30' toX='170' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='290' y='30' toX='435' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='20' y='30' toY='150' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='435' y='30' toY='150' color='000000' />" >>settlement_xml
echo "           <annotation type='text' x='60' y='120' fontSize='16' bold='1' label='TRACS DAY0 - A' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='90' />" >>settlement_xml
echo "                <annotation type='text' x='180' y='120' fontSize='16' bold='1' label='TRACS DAY0 - B' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='90' />" >>settlement_xml
echo "                <annotation type='text' x='255' y='120' fontSize='16' bold='1' label='TRACS DAY - 1' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='90' />" >>settlement_xml

                                                        <!--Horizantal Separator Line -->
echo "                <annotation type='line' x='10' y='150' toX='50' color='008000' />" >>settlement_xml
echo "                <annotation type='line' x='55' y='150' toX='210' color='008000' />" >>settlement_xml
echo "                <annotation type='line' x='215' y='150' toX='270' color='C0C0C0' />" >>settlement_xml

                                                        <!--Vertical Line at 00:00 time -->
echo "                <annotation type='line' x='10' y='145' toY='155' color='008000' />" >>settlement_xml
echo "                <annotation type='text' x='20' y='165' fontSize='12' bold='1' label='00:00' color='008000' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='circle' color='FFFFFF' x='50' y='150' radius='10' showBorder='1' borderColor='$BLLBD101_COLOR' />" >>settlement_xml
echo "                <annotation type='circle' color='FFFFFF' x='210' y='150' radius='10' showBorder='1' borderColor='$BLLBD102_COLOR' />" >>settlement_xml
echo "                <annotation type='circle' color='FFFFFF' x='240' y='150' radius='10' showBorder='1' borderColor='$BLLBD105_COLOR' />" >>settlement_xml

                                                        <!--DARWIN TRACS MERGE  -->
echo "                <annotation type='line' x='50' y='160' toY='270' color='$BLLBD101_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='50' y='270' toX='75' color='$BLLBD101_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='70' y='265' toX='75' toY='270' color='$BLLBD101_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='70' y='275' toX='75' toY='270' color='$BLLBD101_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='210' y='160' toY='270' color='$BLLBD102_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='185' y='270' toX='210' color='$BLLBD102_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='190' y='265' toX='185' toY='270' color='$BLLBD102_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='190' y='275' toX='185' toY='270' color='$BLLBD102_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='100' y='180' fontSize='12' bold='1' label='05:30' color='$BLLBD101_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='100' y='195' fontSize='12' bold='1' label='(Count, Amount)' color='$BLLBD101_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
echo " <annotation type='text' x='160' y='220' fontSize='12' bold='1' label='06:40' color='$BLLBD102_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
echo "                <annotation type='text' x='160' y='235' fontSize='12' bold='1' label='(Count, Amount)' color='$BLLBD102_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
echo "                <annotation type='rectangle' x='75' y='250' toX='185' toY='290' radius='1' color='FFFFFF' borderColor='$BLLBD103_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='130' y='270' fontSize='15' bold='1' label='TRACS MERGE' color='$BLLBD103_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml

                                                        <!--DARWIN DAY - 0  -->
echo "                <annotation type='line' x='135' y='290' toY='350' color='$BLLBD103_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='130' toX='135' y='345' toY='350' color='$BLLBD103_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='140' toX='135' y='345' toY='350' color='$BLLBD103_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='155' y='320' fontSize='12' bold='1' label='06:45' color='$BLLBD103_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='rectangle' x='75' y='350' toX='185' toY='390' radius='1' color='FFFFFF' borderColor='$DWLBD104_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='130' y='370' fontSize='15' bold='1' label='DARWIN DAY - 0' color='$DWLBD104_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='80' />" >>settlement_xml
<!-- DAY - 0 to DARWIN RUN # 1 Line  -->
echo "                <annotation type='line' x='185' y='370' toX='220' color='$DWLBD104_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='220' y='370' toY='450' color='$DWLBD104_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='215' toX='220' y='445' toY='450' color='$DWLBD104_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='225' toX='220' y='445' toY='450' color='$DWLBD104_COLOR' />" >>settlement_xml

echo "                <annotation type='text' x='200' y='410' fontSize='12' bold='1' label='07:15' color='$DWLBD104_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

                                                        <!--DARWIN DAY - 1  -->
echo "                <annotation type='line' x='240' y='160' toY='450' color='$BLLBD105_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='235' toX='240' y='445' toY='450' color='$BLLBD105_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='245' toX='240' y='445' toY='450' color='$BLLBD105_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='290' y='285' fontSize='12' bold='1' label='08:10' color='$BLLBD105_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='290' y='300' fontSize='12' bold='1' label='Day - 1' color='$BLLBD105_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='290' y='315' fontSize='12' bold='1' label='(Count, Amount)' color='$BLLBD105_COLOR' align='center' font='tohama,helvetica,arial,sa    ns-serif' wrap='1' wrapWidth='120' />" >>settlement_xml

echo "                <annotation type='rectangle' x='210' y='450' toX='410' toY='490' radius='1' color='FFFFFF' borderColor='$DWLBD110_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='310' y='470' fontSize='16' bold='1' label='DARWIN RUN #1' color='$DWLBD110_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!-- PAYMENT RUN #1  -->
echo "                <annotation type='line' x='240' y='490' toY='780' color='$DWLBD106_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='235' toX='240' y='775' toY='780' color='$DWLBD106_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='245' toX='240' y='775' toY='780' color='$DWLBD106_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='190' y='610' fontSize='12' bold='1' label='08:30' color='$DWLBD106_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='140' />" >>settlement_xml
echo "                <annotation type='text' x='190' y='625' fontSize='12' bold='1' label='Payment' color='$DWLBD106_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
echo "                <annotation type='text' x='190' y='640' fontSize='12' bold='1' label='Run #1' color='$DWLBD106_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='190' y='655' fontSize='12' bold='1' label='(Count, Amount)' color='$DWLBD106_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
                                                        <!-- ACKNOWLEDGEMENT  -->
echo "                <annotation type='line' x='260' y='490' toY='780' color='$DWLBD107_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='255' toX='260' y='495' toY='490' color='$DWLBD107_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='265' toX='260' y='495' toY='490' color='$DWLBD107_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='290' y='625' fontSize='12' bold='1' label='08:35' color='$DWLBD107_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='290' y='650' fontSize='12' bold='1' label='Acknowledgement' color='$DWLBD107_COLOR' align='center' font='tohama,helvetica,arial,sans-serif'  wrap='1' wrapWidth='60' />" >>settlement_xml
                                                        <!-- Bansta Recieve Starts  -->
echo "                <annotation type='line' x='320' y='490' toY='780' color='$DWLBD108_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='315' toX='320' y='495' toY='490' color='$DWLBD108_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='325' toX='320' y='495' toY='490' color='$DWLBD108_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='350' y='610' fontSize='12' bold='1' label='09:15' color='$DWLBD108_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='350' y='625' fontSize='12' bold='1' label='BANSTA' color='$DWLBD108_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='350' y='640' fontSize='12' bold='1' label='Receive' color='$DWLBD108_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='350' y='655' fontSize='12' bold='1' label='Starts' color='$DWLBD108_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!-- End of BANSTA  -->
echo "                <annotation type='line' x='380' y='490' toY='780' color='$DWLBD109_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='375' toX='380' y='495' toY='490' color='$DWLBD109_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='385' toX='380' y='495' toY='490' color='$DWLBD109_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='410' y='610' fontSize='12' bold='1' label='09:30' color='$DWLBD109_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='410' y='625' fontSize='12' bold='1' label='END' color='$DWLBD109_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='410' y='640' fontSize='12' bold='1' label='OF' color='$DWLBD109_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='410' y='655' fontSize='12' bold='1' label='BANSTA' color='$DWLBD109_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!-- Message Way Box for DARWIN RUN#1 -->
echo "                <annotation type='rectangle' x='210' y='780' toX='410' toY='820' radius='1' color='FFFFFF' borderColor='$DWLBD109_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='310' y='800' fontSize='15' bold='1' label='Message Way & Bulk File' color='$DWLBD109_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

                                <!--Line from Darwin Run #1 to Darwin Run#2 -->
echo "                <annotation type='line' x='410' y='470' toX='500' color='$DWLBD110_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='495' y='465' toX='500' toY='470' color='$DWLBD110_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='495' y='475' toX='500' toY='470' color='$DWLBD110_COLOR' />" >>settlement_xml

echo "                 <annotation type='text' x='460' y='460' fontSize='12' bold='1' label='09:35' color='$DWLBD110_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
<!--Line from  A to Darwin Run#1  -->
echo "                <annotation type='circle' color='FFFFFF' x='90' y='620' radius='15' showBorder='1' borderColor='008000' />" >>settlement_xml
echo "                <annotation type='text' x='90' y='620' fontSize='15' bold='1' label='B' color='008000' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

echo "                <annotation type='line' x='90' y='570' toY='605' color='008000' />" >>settlement_xml
echo "                <annotation type='line' x='85' toX='90' y='575' toY='570' color='008000' />" >>settlement_xml
echo "                <annotation type='line' x='95' toX='90' y='575' toY='570' color='008000' />" >>settlement_xml
echo "                <annotation type='rectangle' x='30' y='530' toX='150' toY='570' radius='1' color='FFFFFF' borderColor='$DWLBD406_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='90' y='550' fontSize='15' bold='1' label='Message Way & Bulk File' color='$DWLBD406_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='line' x='60' y='460' toY='530' color='$DWLBD405_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='60' y='460' toX='210' color='$DWLBD405_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='205' y='455' toX='210' toY='460' color='$DWLBD405_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='205' y='465' toX='210' toY='460' color='$DWLBD405_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='130' y='435' fontSize='12' bold='1' label='05:30' color='$DWLBD405_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

echo "                <annotation type='text' x='130' y='450' fontSize='12' bold='1' label='BANSTA Receive Starts' color='$DWLBD405_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

echo "                <annotation type='line' x='110' y='480' toY='530' color='$DWLBD406_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='110' y='480' toX='210' color='$DWLBD406_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='205' y='475' toX='210' toY='480' color='$DWLBD406_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='205' y='485' toX='210' toY='480' color='$DWLBD406_COLOR' />" >>settlement_xml

echo "                <annotation type='text' x='160' y='490' fontSize='12' bold='1' label='06:00' color='$DWLBD406_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

echo "                <annotation type='text' x='160' y='505' fontSize='12' bold='1' label='END OF BANSTA' color='$DWLBD406_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
                                                        <!-- Vertical Line to separate AFTS-1 and AFTS-2 -->
echo "                <annotation type='line' x='442' y='150' toY='900' color='FDB895' dashed='1' />" >>settlement_xml
echo "        </annotationGroup>" >>settlement_xml
echo "        <annotationGroup id='Grp2'>" >>settlement_xml
echo "                <annotation type='text' x='600' y='30' fontSize='20' bold='1' label='AFTS - 2' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!-- AFTS - 2 -->
echo "                <annotation type='line' x='450' y='30' toX='540' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='660' y='30' toX='730' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='450' y='30' toY='150' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='730' y='30' toY='150' color='000000' />" >>settlement_xml
                                                        <!--Horizantal Separator Line DAY - 1 to DAY - 2 -->
echo "                <annotation type='line' x='270' y='150' toX='520' color='C0C0C0' />" >>settlement_xml

echo "                <annotation type='text' x='530' y='120' fontSize='16' bold='1' label='TRACS DAY - 2' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='90' />" >>settlement_xml
echo "          <annotation type='circle' color='FFFFFF' x='530' y='150' radius='10' showBorder='1' borderColor='$BLLBD201_COLOR' borderThickness='2'/>" >>settlement_xml
                                                        <!--DARWIN DAY - 2  -->
echo "                <annotation type='line' x='530' y='160' toY='450' color='$BLLBD201_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='525' toX='530' y='445' toY='450' color='$BLLBD201_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='535' toX='530' y='445' toY='450' color='$BLLBD201_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='580' y='285' fontSize='12' bold='1' label='13:15' color='$BLLBD201_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='580' y='300' fontSize='12' bold='1' label='Day - 2' color='$BLLBD201_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='580' y='315' fontSize='12' bold='1' label='(Count, Amount)' color='$BLLBD201_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml

echo "               <annotation type='rectangle' x='500' y='450' toX='700' toY='490' radius='1' color='FFFFFF' borderColor='$DWLBD206_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='600' y='470' fontSize='16' bold='1' label='DARWIN RUN #2' color='$DWLBD206_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!-- PAYMENT RUN #1  -->
echo "                <annotation type='line' x='540' y='490' toY='780' color='$DWLBD202_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='535' toX='540' y='775' toY='780' color='$DWLBD202_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='545' toX='540' y='775' toY='780' color='$DWLBD202_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='490' y='610' fontSize='12' bold='1' label='13:25' color='$DWLBD202_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='140' />" >>settlement_xml
echo "                <annotation type='text' x='490' y='625' fontSize='12' bold='1' label='Payment' color='$DWLBD202_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='490' y='640' fontSize='12' bold='1' label='Run #2' color='$DWLBD202_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='490' y='655' fontSize='12' bold='1' label='(Count, Amount)' color='$DWLBD202_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
                                                        <!-- ACKNOWLEDGEMENT  -->
echo "                <annotation type='line' x='560' y='490' toY='780' color='$DWLBD203_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='555' toX='560' y='495' toY='490' color='$DWLBD203_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='565' toX='560' y='495' toY='490' color='$DWLBD203_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='590' y='625' fontSize='12' bold='1' label='13:30' color='$DWLBD203_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='590' y='650' fontSize='12' bold='1' label='Acknowledgement' color='$DWLBD203_COLOR' align='center' font='tohama,helvetica,arial,sans-serif'  wrap='1' wrapWidth='60' />" >>settlement_xml
                                                        <!-- Bansta Recieve Starts  -->
echo "                <annotation type='line' x='620' y='490' toY='780' color='$DWLBD204_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='615' toX='620' y='495' toY='490' color='$DWLBD204_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='625' toX='620' y='495' toY='490' color='$DWLBD204_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='650' y='610' fontSize='12' bold='1' label='14:20' color='$DWLBD204_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='650' y='625' fontSize='12' bold='1' label='BANSTA' color='$DWLBD204_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='650' y='640' fontSize='12' bold='1' label='Receive' color='$DWLBD204_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='650' y='655' fontSize='12' bold='1' label='Starts' color='$DWLBD204_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!-- End of BANSTA  -->
echo "                <annotation type='line' x='680' y='490' toY='780' color='$DWLBD205_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='675' toX='680' y='495' toY='490' color='$DWLBD205_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='685' toX='680' y='495' toY='490' color='$DWLBD205_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='710' y='610' fontSize='12' bold='1' label='14:40' color='$DWLBD205_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='710' y='625' fontSize='12' bold='1' label='END' color='$DWLBD205_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='710' y='640' fontSize='12' bold='1' label='OF' color='$DWLBD205_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='710' y='655' fontSize='12' bold='1' label='BANSTA' color='$DWLBD205_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
 
Old 02-12-2014, 04:04 AM   #4
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Original Poster
Rep: Reputation: Disabled
code continued....
Code:
<!-- Message Way Box -->
echo "                <annotation type='rectangle' x='500' y='780' toX='700' toY='820' radius='1' color='FFFFFF' borderColor='$DWLBD205_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='600' y='800' fontSize='15' bold='1' label='Message Way & Bulk File' color='$DWLBD205_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                <!--Line from Darwin Run #2 to Darwin Run#3 -->
echo "                <annotation type='line' x='700' y='470' toX='795' color='$DWLBD206_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='790' y='465' toX='795' toY='470' color='$DWLBD206_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='790' y='475' toX='795' toY='470' color='$DWLBD206_COLOR' />" >>settlement_xml

echo "                <annotation type='text' x='760' y='460' fontSize='12' bold='1' label='14:45' color='$DWLBD206_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                         <!-- Vertical Line to separate AFTS-2 and AFTS-3 -->
echo "                <annotation type='line' x='737' y='150' toY='900' color='FDB895' dashed='1' />" >>settlement_xml
echo "        </annotationGroup>" >>settlement_xml
echo "        <annotationGroup id='Grp3'>" >>settlement_xml
echo "                <annotation type='text' x='930' y='30' fontSize='20' bold='1' label='BACS' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

                                                        <!-- BACS -->
echo "                <annotation type='line' x='745' y='30' toX='885' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='975' y='30' toX='1095' color='000000' />" >>settlement_xml

echo "                <annotation type='line' x='745' y='30' toY='150' color='000000' />" >>settlement_xml

echo "                <annotation type='line' x='1095' y='30' toY='150' color='000000' />" >>settlement_xml

                                                        <!--Horizantal Separator Line Day 2 to Day 3-->
echo "                <annotation type='line' x='540' y='150' toX='820' color='C0C0C0' />" >>settlement_xml

echo "                <annotation type='text' x='830' y='120' fontSize='16' bold='1' label='TRACS DAY - 3' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='90' />" >>settlement_xml

echo "                <annotation type='circle' color='FFFFFF' x='825' y='150' radius='10' showBorder='1' borderColor='$BLLBD301_COLOR' borderThickness='2' />" >>settlement_xml
                                                        <!--DARWIN DAY - 3  -->
echo "                <annotation type='line' x='825' y='160' toY='450' color='$BLLBD301_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='820' toX='825' y='445' toY='450' color='$BLLBD301_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='830' toX='825' y='445' toY='450' color='$BLLBD301_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='875' y='285' fontSize='12' bold='1' label='17:45' color='$BLLBD301_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='875' y='300' fontSize='12' bold='1' label='Day - 3' color='$BLLBD301_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='875' y='315' fontSize='12' bold='1' label='(Count, Amount)' color='$BLLBD301_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
echo "                <annotation type='rectangle' x='795' y='450' toX='995' toY='490' radius='1' color='FFFFFF' borderColor='$DWLBD307_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='895' y='470' fontSize='16' bold='1' label='DARWIN RUN #3' color='$DWLBD307_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                 <!-- PAYMENT RUN #3  -->
echo "                <annotation type='line' x='840' y='490' toY='780' color='$DWLBD302_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='835' toX='840' y='775' toY='780' color='$DWLBD302_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='845' toX='840' y='775' toY='780' color='$DWLBD302_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='790' y='610' fontSize='12' bold='1' label='18:00' color='$DWLBD302_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='140' />" >>settlement_xml
echo "                <annotation type='text' x='790' y='625' fontSize='12' bold='1' label='Payment' color='$DWLBD302_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='790' y='640' fontSize='12' bold='1' label='Run #3' color='$DWLBD302_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='790' y='655' fontSize='12' bold='1' label='(Count, Amount)' color='$DWLBD302_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml

                                                <!-- ACKNOWLEDGEMENT  -->
echo "                <annotation type='line' x='860' y='490' toY='780' color='$DWLBD303_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='855' toX='860' y='495' toY='490' color='$DWLBD303_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='865' toX='860' y='495' toY='490' color='$DWLBD303_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='890' y='625' fontSize='12' bold='1' label='18:05' color='$DWLBD303_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='890' y='650' fontSize='12' bold='1' label='Acknowledgement' color='$DWLBD303_COLOR' align='center' font='tohama,helvetica,arial,sans-serif'  wrap='1' wrapWidth='60' />" >>settlement_xml

                                                 <!-- Bansta Recieve Starts  -->
echo "                <annotation type='line' x='920' y='490' toY='780' color='$DWLBD304_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='915' toX='920' y='495' toY='490' color='$DWLBD304_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='925' toX='920' y='495' toY='490' color='$DWLBD304_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='950' y='610' fontSize='12' bold='1' label='18:40' color='$DWLBD304_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='950' y='625' fontSize='12' bold='1' label='BANSTA' color='$DWLBD304_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='950' y='640' fontSize='12' bold='1' label='Receive' color='$DWLBD304_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='950' y='655' fontSize='12' bold='1' label='Starts' color='$DWLBD304_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

                                                         <!-- End of BANSTA  -->
echo "                <annotation type='line' x='980' y='490' toY='780' color='$DWLBD305_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='975' toX='980' y='495' toY='490' color='$DWLBD305_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='985' toX='980' y='495' toY='490' color='$DWLBD305_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='1010' y='610' fontSize='12' bold='1' label='19:00' color='$DWLBD305_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1010' y='625' fontSize='12' bold='1' label='END' color='$DWLBD305_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1010' y='640' fontSize='12' bold='1' label='OF' color='$DWLBD305_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1010' y='655' fontSize='12' bold='1' label='BANSTA' color='$DWLBD305_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='rectangle' x='795' y='780' toX='995' toY='820' radius='1' color='FFFFFF' borderColor='$DWLBD305_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='895' y='800' fontSize='15' bold='1' label='Message Way & Bulk File' color='$DWLBD305_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

                                                 <!--Line from Darwin Run #2 to Darwin Run#L -->
echo "                <annotation type='line' x='995' y='460' toX='1145' color='$DWLBD307_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1140' y='455' toX='1145' toY='460' color='$DWLBD307_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1140' y='465' toX='1145' toY='460' color='$DWLBD307_COLOR' />" >>settlement_xml

echo "                <annotation type='text' x='1060' y='450' fontSize='12' bold='1' label='19:05' color='$DWLBD307_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml

echo "                <annotation type='line' x='995' y='480' toX='1080' color='$DWLBD306_COLOR' />" >>settlement_xml

echo "                <annotation type='line' x='1080' y='480' toY='540' color='$DWLBD306_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1075' toX='1080' y='535' toY='540' color='$DWLBD306_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1085' toX='1080' y='535' toY='540' color='$DWLBD306_COLOR' />" >>settlement_xml

echo "          <annotation type='text' x='1030' y='510' fontSize='12' bold='1' label='18:30' color='$DWLBD306_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1030' y='525' fontSize='12' bold='1' label='(Count, Amount)' color='$DWLBD306_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml

echo "                <annotation type='rectangle' x='1025' y='540' toX='1095' toY='580' radius='1' color='FFFFFF' borderColor='$DWLBD306_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='1060' y='560' fontSize='15' bold='1' label='BACS' color='$DWLBD306_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                  <!-- Vertical Line to separate AFTS-2 and AFTS-3 -->
echo "                <annotation type='line' x='1102' y='150' toY='900' color='FDB895' dashed='1' />" >>settlement_xml
echo "        </annotationGroup>" >>settlement_xml
echo "        <annotationGroup id='Grp4'>" >>settlement_xml
echo "                <annotation type='text' x='1240' y='30' fontSize='20' bold='1' label='CDI' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                                <!-- CDI -->
echo "                <annotation type='line' x='1110' y='30' toX='1200' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='1280' y='30' toX='1380' color='000000' />" >>settlement_xml

echo "                <annotation type='line' x='1110' y='30' toY='150' color='000000' />" >>settlement_xml
echo "                <annotation type='line' x='1380' y='30' toY='150' color='000000' />" >>settlement_xml
                                                        <!--Horizantal Separator LineDay3 to Day4 -->
echo "                <annotation type='line' x='835' y='150' toX='1220' color='C0C0C0' />" >>settlement_xml
echo "                <annotation type='line' x='1210' y='150' toX='1390' color='C0C0C0' />" >>settlement_xml
echo "                <annotation type='text' x='1220' y='120' fontSize='16' bold='1' label='TRACS DAY - 4' color='004b91' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='90' />" >>settlement_xml
echo "                <annotation type='circle' color='FFFFFF' x='1225' y='150' radius='10' showBorder='1' borderColor='$BLLBD401_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='line' x='1390' y='145' toY='155' color='C0C0C0' />" >>settlement_xml
echo "                <annotation type='text' x='1380' y='165' fontSize='12' bold='1' label='23:59' color='C0C0C0' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                        <!--DARWIN DAY - 4  -->
echo "                <annotation type='line' x='1225' y='160' toY='450' color='$BLLBD401_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1220' toX='1225' y='445' toY='450' color='$BLLBD401_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1230' toX='1225' y='445' toY='450' color='$BLLBD401_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='1275' y='285' fontSize='12' bold='1' label='22:15' color='$BLLBD401_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='1275' y='300' fontSize='12' bold='1' label='Day - 4' color='$BLLBD401_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1275' y='315' fontSize='12' bold='1' label='(Count, Amount)' color='$BLLBD401_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
                                                        <!-- Darwin RUN #L -->
echo "                <annotation type='rectangle' x='1145' y='450' toX='1345' toY='490' radius='1' color='FFFFFF' borderColor='$DWLBD404_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='1245' y='470' fontSize='16' bold='1' label='DARWIN RUN #L' color='$DWLBD404_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                                   <!-- PAYMENT RUN #3  -->
echo "                <annotation type='line' x='1240' y='490' toY='780' color='$DWLBD402_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1235' toX='1240' y='775' toY='780' color='$DWLBD402_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1245' toX='1240' y='775' toY='780' color='$DWLBD402_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='1190' y='610' fontSize='12' bold='1' label='23:00' color='$DWLBD402_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='140' />" >>settlement_xml
echo "                <annotation type='text' x='1190' y='625' fontSize='12' bold='1' label='Payment' color='$DWLBD402_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='1190' y='640' fontSize='12' bold='1' label='Run #L' color='$DWLBD402_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='100' />" >>settlement_xml
echo "                <annotation type='text' x='1190' y='655' fontSize='12' bold='1' label='(Count, Amount)' color='$DWLBD402_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
                                                <!-- ACKNOWLEDGEMENT  -->
echo "                <annotation type='line' x='1260' y='490' toY='780' color='$DWLBD403_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1255' toX='1260' y='495' toY='490' color='$DWLBD403_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1265' toX='1260' y='495' toY='490' color='$DWLBD403_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='1290' y='625' fontSize='12' bold='1' label='23:15' color='$DWLBD403_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1290' y='650' fontSize='12' bold='1' label='Acknowledgement' color='$DWLBD403_COLOR' align='center' font='tohama,helvetica,arial,sans-serif'  wrap='1' wrapWidth='60' />" >>settlement_xml
echo "                <annotation type='rectangle' x='1165' y='780' toX='1365' toY='820' radius='1' color='FFFFFF' borderColor='$DWLBD403_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='1265' y='800' fontSize='15' bold='1' label='Message Way & Bulk File' color='$DWLBD403_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='line' x='1345' toX='1360' y='480' color='$DWLBD404_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1360' y='480' toY='540' color='$DWLBD404_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1355' toX='1360' y='535' toY='540' color='$DWLBD404_COLOR' />" >>settlement_xml
echo "                <annotation type='line' x='1365' toX='1360' y='535' toY='540' color='$DWLBD404_COLOR' />" >>settlement_xml
echo "                <annotation type='text' x='1310' y='510' fontSize='12' bold='1' label='23:55' color='$DWLBD404_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "                <annotation type='text' x='1310' y='525' fontSize='12' bold='1' label='(Count, Amount)' color='$DWLBD404_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' wrap='1' wrapWidth='120' />" >>settlement_xml
echo "                <annotation type='rectangle' x='1320' y='540' toX='1390' toY='580' radius='1' color='FFFFFF' borderColor='$DWLBD404_COLOR' borderThickness='2' />" >>settlement_xml
echo "                <annotation type='text' x='1355' y='560' fontSize='15' bold='1' label='CDI' color='$DWLBD404_COLOR' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
                                         <!-- A to Darwin Run#1  -->
echo "                <annotation type='line' x='1255' y='820' toY='865' color='C0C0C0' />" >>settlement_xml
echo "                <annotation type='line' x='1250' toX='1255' y='860' toY='865' color='C0C0C0' />" >>settlement_xml
echo "                <annotation type='line' x='1260' toX='1255' y='860' toY='865' color='C0C0C0' />" >>settlement_xml
echo "                <annotation type='circle' color='FFFFFF' x='1255' y='880' radius='15' showBorder='1' borderColor='C0C0C0' />" >>settlement_xml
echo "                <annotation type='text' x='1255' y='880' fontSize='15' bold='1' label='B' color='C0C0C0' align='center' font='tohama,helvetica,arial,sans-serif' />" >>settlement_xml
echo "        </annotationGroup>" >>settlement_xml
echo " </annotations>" >>settlement_xml
echo " <styles>" >>settlement_xml
echo "        <definition><style name='myBevel' type='Bevel'/></definition>" >>settlement_xml
echo "        <application><apply toObject='Background' styles='myBevel' /></application>" >>settlement_xml
echo " </styles>" >>settlement_xml
echo " </chart>" >>settlement_xml

}

write_colors
write_val_xml
 
Old 03-07-2014, 03:17 AM   #5
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Original Poster
Rep: Reputation: Disabled
....

---------- Post added 03-07-14 at 02:48 PM ----------

...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Script not working in cron but working fine manually jasperux Linux - Newbie 2 07-04-2012 11:28 PM
Could you help me get a script working? seabro Linux - Newbie 5 03-26-2012 03:22 AM
Crontab is not working, the script is working arfal SUSE / openSUSE 6 02-08-2010 08:48 PM
SH Script not working PEACEYALL Linux - General 3 03-21-2005 08:58 AM
Help get this script working please rickenbacherus Linux - General 2 03-24-2004 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration