datastage 作业查找脚本
生活随笔
收集整理的這篇文章主要介紹了
datastage 作业查找脚本
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
下面兩個shell腳本是shell調用datastage作業時查找缺少作業和錯誤作業名的腳本
腳本一:
[root@dataStage?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/nullthen??:else?echo?$ifidone [root@dataStage?findjob]#腳本二:
[root@dataStage?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/nullthen??:else?echo?$ifidone [root@dataStage?findjob]#轉載于:https://blog.51cto.com/fuwenchao/1531095
總結
以上是生活随笔為你收集整理的datastage 作业查找脚本的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 正式开始liunx学习之旅
- 下一篇: 编译安装subversion-1.8.