. /usr/local/bin/setenv.sh LOGDIR=$INFORMIXHOME/logs LOGFILE=$LOGDIR/ontape-c.log cnt=`ps -ef | grep -v grep | grep -c "ontape -c"` if [ $cnt -eq 0 ] then date | tee -a $LOGFILE echo "Starting Informix Continuous Logging to Tape" | tee -a $LOGFILE nohup $INFORMIXDIR/bin/ontape -c <<-EOF >>$LOGFILE 2>&1 EOF else date | tee -a $LOGFILE echo "Informix Continuous Logging to Tape already running - not restarted" | tee -a $LOGFILE ps -ef | grep -v grep | grep "ontape -c" | tee -a $LOGFILE fi