1 ftp.50
date
cat jh|while read line
do
echo "now ftp $line"
a=`echo $line|sed -e 's/SDQK//g'`
ftp 10.150.4.50 <bin
prom
cd /usr/sap/trans/cofiles
lcd /usr/sap/trans/cofiles
mget *$a*
cd /usr/sap/trans/data
lcd /usr/sap/trans/data
mget *$a*
bye
!
done
2 710
if [ "$#" = "0" ]
then
cat jh |while read line
do
echo "$line ============================"
tp addtobuffer $line CQA
tp import $line CQA client710 u12
done
else
line="$1"
echo "$line ==========================="
tp addtobuffer $line CQA
tp import $line CQA client710 u12
fi
3 801
if [ "$#" = "0" ]
then
cat jh |while read line
do
echo "$line ________________________"
tp addtobuffer $line lh1
tp import $line lh1 client801 u1
done
else
line="$1"
echo "$line _________________________"
tp addtobuffer $line lh1
tp import $line lh1 client801 u1
fi
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9617129/viewspace-620589/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9617129/viewspace-620589/