18 |
# This is obtained from the report of all observations that the XSA makes to CDS, |
# This is obtained from the report of all observations that the XSA makes to CDS, |
19 |
# xsaobslog.txt (http://nxsa.esac.esa.int/ftp_public/cfs_obslog/xsaobslog.txt). |
# xsaobslog.txt (http://nxsa.esac.esa.int/ftp_public/cfs_obslog/xsaobslog.txt). |
20 |
# |
# |
21 |
# $Id: mlovccf,v 1.19 2017/01/10 16:43:39 ccflib Exp $ |
# $Id: mlovccf,v 1.20 2018/07/25 10:24:15 ccflib Exp $ |
22 |
|
|
23 |
# Next two lines allow to submit this script to the grid |
# Next two lines allow to submit this script to the grid |
24 |
# request Bourne shell as shell for job |
# request Bourne shell as shell for job |
134 |
|
|
135 |
validccflist=$1 |
validccflist=$1 |
136 |
|
|
137 |
if [ ! -f "${VALID_CCF}/${validccflist}" ] ; then |
if [ ! -f "${VALID_CCF}/${validccflist}" -o ! -s "${VALID_CCF}/${validccflist}" ] ; then |
138 |
echo "Error: ${VALID_CCF}/${validccflist} not found - Abort!" |
echo "Error: ${VALID_CCF}/${validccflist} not found or empty - Abort!" |
139 |
[ -f "${mailfile}" ] && rm -rf ${mailfile} |
[ -f "${mailfile}" ] && rm -rf ${mailfile} |
140 |
echo "The list of valid CCF ${VALID_CCF}/${validccflist} is not found" >> $mailfile |
echo "The list of valid CCF ${VALID_CCF}/${validccflist} is not found or it is empty" >> $mailfile |
141 |
mailnotify "mvloccf: Error: ${VALID_CCF}/${validccflist} not found - Abort!" $mailfile |
mailnotify "mvloccf: Error: ${VALID_CCF}/${validccflist} not found or it is empty - Abort!" $mailfile |
142 |
rm ${mailfile} |
rm ${mailfile} |
143 |
exit |
exit |
144 |
fi |
fi |