The following two shell scripts are scripts used by Shell to find the missing and wrong job names when calling the datastage job.
Script 1:
[[email protected] findjob]# more errcfgjob.sh #!/bin/bash########################################################################purpose:find the error configuration job in the file dsjob_list2.conf#version:1#date:2014-05-29########################################################################for i in `cat dsjob_list2.conf |cut -d: -f1`do if cat alljob.xml|grep $i>/dev/null then :else echo $ifidone[[email protected] findjob]#
Script 2:
[[email protected] findjob]# more lackjob.sh #!/bin/bash######################################################################purpose:this shell is order to find the job in the project but not writen to the configration#author:wenchao#version:1#time:2014-05-29#####################################################################for i in `awk -F ‘<id_>|</id_>‘ ‘{print $2}‘ alljob.xml |sed ‘/^$/d‘`do if cat dsjob_list2.conf|grep $i>/dev/null then :else echo $ifidone[[email protected] findjob]#