#!/bin/bash PATH_BIN=/usr/local/sphinx/bin PATH_LOG=/dbs/sphinxlog DATE=`date '+%Y-%m-%d %H-%M-%S'` echo "DEBUT de l'indexation ==== $(date +%H:%M:%S)" >> $PATH_LOG/indexerAct-$(date +%F).log $PATH_BIN/indexer --rotate act act_phx >> $PATH_LOG/indexerAct-$(date +%F).log echo "FIN ===== $(date +%H:%M:%S)" >> $PATH_LOG/indexerAct-$(date +%F).log