I have several scripts , which are calling one. That script, depends of arguments, processing daily, weekly and monthly files. After process daily, I started process weekly
exec ${LOCL_WORKING_DIR}/sftp_ondemand.sh /export/data/mbsesb/config/ondemand.cfg /export/data/mbsesb/config/filename.lst W
in the calling script I have lines:
if [ -d ${COOLDIR}/cool_${Today}/daily ] && [ "${CASENAME}" = "D" ]
then
for...
do
do something
done
fi
if [ -d ${COOLDIR}/cool_${Today}/weekly ] && [ "${CASENAME}" = "W" ];then
for ...
do
do something
done
fi
if [ -d ${COOLDIR}/cool_${Today}/monthly ] && [ "${CASENAME}" = "M" ];then
for
do
do something
done
fi
If daily directory created and I start weekly, it is anyway getting to daily directory.
Where Am I wrong?
Thanks for contribution