File indexing completed on 2024-04-06 12:01:52
0001
0002
0003 BASEDIR=/data/O2O
0004 LOGFILE=${BASEDIR}/logs/TimeBasedO2O.log
0005 DATE=`date`
0006 echo " " | tee -a $LOGFILE
0007 echo "----- new cronjob started for Time Based O2O at -----" | tee -a $LOGFILE
0008 echo "$DATE" | tee -a $LOGFILE
0009
0010
0011 PID_0=`ps aux | grep '/bin/sh /data/O2O/scripts/EcalLaser.sh' | grep -v grep | awk '{print $2}'`
0012 if [ "${PID_0}" ]
0013 then
0014 echo "Ecal Laser Exportation script still running with pid ${PID_0}: exiting" | tee -a $LOGFILE
0015 exit 1
0016 else
0017 /bin/sh /data/O2O/scripts/EcalLaser.sh
0018 fi
0019 PID_1=`ps aux | grep '/bin/sh /data/O2O/scripts/EcalLaser_express.sh' | grep -v grep | awk '{print $2}'`
0020 if [ "${PID_1}" ]
0021 then
0022 echo "Ecal LaserExpress Exportation script still running with pid ${PID_1}: exiting" | tee -a $LOGFILE
0023 exit 1
0024 else
0025 /bin/sh /data/O2O/scripts/EcalLaser_express.sh
0026 fi