Professional Documents
Culture Documents
/bin/ksh
# set -x
. /nsr/scripts/.profile
CURRENT_TIME_EPOCH=`date +%s`
CURRENTHOUR=`date +"%H"`
CURRENTMINUTE=`date +"%M"`
if [ $1 ] && [ $1 = NO_MANUAL_RUN ] && [ $CURRENTMINUTE = 25 ] || [ $CURRENTMINUTE
= 55 ]
then
echo "Proceeding..." >/dev/null
else
echo "Exiting...Running this script manually is prohibited"
exit
fi
rm /nsr/scripts/.lock_check