ITPub博客

首页 > Linux操作系统 > Linux操作系统 > compress sh

compress sh

原创 Linux操作系统 作者:yanggq 时间:2019-06-21 13:03:06 0 删除 编辑

COMPRE="/u03/dbbackup/PROD/export"; export COMPRE
if [ -f $COMPRE/* ]; then
echo " "
echo "${JOBNAME_SHORT}: Compressing export logs..."
for FILE in $COMPRE/*
do
ls -l $FILE
ARCNAME=`basename $FILE`
compress -f $COMPRE/$ARCNAME

STATUS="$?"
if [ "$STATUS" != 0 ]; then
echo "$COMPRE Error"
fi
done
else
echo "${JOBNAME_SHORT}: Compress Error copy"
fi


COMPRE="/u03/dbbackup/PROD/export"; export COMPRE
if [ -f $COMPRE/* ]; then
echo " "
echo "${JOBNAME_SHORT}: Compressing export logs..."
for FILE in $COMPRE/*
do
ls -l $FILE
ARCNAME=`basename $FILE`
compress -f $COMPRE/$ARCNAME

STATUS="$?"
if [ "$STATUS" != 0 ]; then
echo "$COMPRE Error"
fi
done
else
echo "${JOBNAME_SHORT}: Compress Error copy"
fi

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26706/viewspace-64573/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2002-10-29

  • 博文量
    78
  • 访问量
    48878