file_gw()
{
_CNT1=`ls -l "$1"| awk '{print $5}'`
_CNT2=0
until [[ ${_CNT1} = ${_CNT2} ]]; do
_CNT1=`ls -l "$1"| awk '{print $5}'`
sleep 5
_CNT2=`ls -l "$1"| awk '{print $5}'`
done
echo -e "File is stabled : $1"
}
para_file=$(mktemp)
chmod 600 $para_file
echo "userid=${FCP_LOGIN}" > $para_file
sqlldr parfile=$para_file control=$FILE_PATH/XSIAP_ECHECK_CS_IMAGE_DETAILS.ctl log=$LOG_PATH/${file}.log bad=$LOG_PATH/${file}.bad data=${each_files}
No comments:
Post a Comment