datastage 作业查找脚本
下面两个shell脚本是shell调用datastage作业时查找缺少作业和错误作业名的脚本脚本一:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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 $i
fi
done
#
脚本二:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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 $i
fi
done
#
页:
[1]