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.23 2019/11/12 16:00:29 ccflib Exp $ |
# $Id: mlovccf,v 1.24 2020/11/13 16:09:22 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 |
160 |
fi |
fi |
161 |
|
|
162 |
VALIDCONSTITUENTSDIR="/home/ccflib/ftp-area/valid_constituents" |
VALIDCONSTITUENTSDIR="/home/ccflib/ftp-area/valid_constituents" |
163 |
|
# Checks that the VALIDCONSTITUENTSDIR directory is writable by me |
164 |
|
touch ${VALIDCONSTITUENTSDIR}/test 2> /dev/null |
165 |
|
if [ "$?" != "0" ] ; then |
166 |
|
[ -f "${mailfile}" ] && rm -rf ${mailfile} |
167 |
|
echo "${VALIDCONSTITUENTSDIR} is not writable. Can not work" >> $mailfile |
168 |
|
mailnotify "mvloccf: Error: ${VALIDCONSTITUENTSDIR} is not writable - Abort!" $mailfile |
169 |
|
rm ${mailfile} |
170 |
|
exit |
171 |
|
fi |
172 |
rm -rf ${VALIDCONSTITUENTSDIR}/* |
rm -rf ${VALIDCONSTITUENTSDIR}/* |
173 |
|
|
174 |
# This operation can only succeed because the subdir valid has enable the write permission |
# This operation can only succeed because the subdir valid has enable the write permission |
175 |
# for the group "sas" (g=rwx), provided that CCFs belong to sasbuild(5153):sas. |
# for the group "sas" (g=rwx), provided that CCFs belong to sasbuild(5153):sas. |
176 |
VALIDCCFDIRINTRANET="/ccf/valid" |
VALIDCCFDIRINTRANET="/ccf/valid" |
177 |
|
# Checks that the VALIDCCFDIRINTRANET directory is writable by me |
178 |
|
touch ${VALIDCCFDIRINTRANET}/test 2> /dev/null |
179 |
|
if [ "$?" != "0" ] ; then |
180 |
|
[ -f "${mailfile}" ] && rm -rf ${mailfile} |
181 |
|
echo "${VALIDCCFDIRINTRANET} is not writable. Can not work" >> $mailfile |
182 |
|
mailnotify "mvloccf: Error: ${VALIDCCFDIRINTRANET} is not writable - Abort!" $mailfile |
183 |
|
rm ${mailfile} |
184 |
|
exit |
185 |
|
fi |
186 |
|
|
187 |
rm -rf ${VALIDCCFDIRINTRANET}/* |
rm -rf ${VALIDCCFDIRINTRANET}/* |
188 |
|
|
189 |
CONSTITUENTSDIR="/home/ccflib/ftp-area/constituents" |
CONSTITUENTSDIR="/home/ccflib/ftp-area/constituents" |
239 |
sasbld01n|sasbld02n) |
sasbld01n|sasbld02n) |
240 |
export SASBUILD_LOCAL="/sasbuild/local/${host}/GNU_CC_CXX_9.2.0" |
export SASBUILD_LOCAL="/sasbuild/local/${host}/GNU_CC_CXX_9.2.0" |
241 |
;; |
;; |
242 |
sciggw7|scigvn7-*) |
sciggw|scigrid-*) |
243 |
export SASBUILD_LOCAL="/sasbuild/local/sasbld04n/GNU_CC_CXX_9.2.0" |
export SASBUILD_LOCAL="/sasbuild/local/sasbld04n/GNU_CC_CXX_9.2.0" |
244 |
;; |
;; |
245 |
*) echo "Error: Unsupported host $host" ; exit 1 ;; |
*) echo "Error: Unsupported host $host" ; exit 1 ;; |
499 |
|
|
500 |
# 6. Fill in the Valid CCF Set dir with the proper CCFs |
# 6. Fill in the Valid CCF Set dir with the proper CCFs |
501 |
|
|
502 |
#fillvalidccfdir "all_ccfs_${now}.txt" |
fillvalidccfdir "all_ccfs_${now}.txt" |
503 |
|
|
504 |
|
|
505 |
#[ -f "${mailfile}" ] && rm -rf ${mailfile} |
[ -f "${mailfile}" ] && rm -rf ${mailfile} |
506 |
#echo "Valid CCF Set successfully copied to ${VALIDCONSTITUENTSDIR}" >> $mailfile |
echo "Valid CCF Set successfully copied to ${VALIDCONSTITUENTSDIR}" >> $mailfile |
507 |
#echo "Valid CCF Set successfully copied to ${VALIDCCFDIRINTRANET}" >> $mailfile |
echo "Valid CCF Set successfully copied to ${VALIDCCFDIRINTRANET}" >> $mailfile |
508 |
#mailnotify "mvloccf: Valid CCF Set created successfully" $mailfile |
mailnotify "mvloccf: Valid CCF Set created successfully" $mailfile |
509 |
#rm ${mailfile} |
rm ${mailfile} |