Ajout date plus complète

This commit is contained in:
Michael RICOIS 2014-04-17 10:35:01 +00:00
parent f46036bf15
commit 21699effe5
4 changed files with 11 additions and 11 deletions

View File

@ -2,6 +2,6 @@
PATH_BIN=/usr/local/sphinx/bin PATH_BIN=/usr/local/sphinx/bin
PATH_LOG=/dbs/sphinxlog PATH_LOG=/dbs/sphinxlog
echo "DEBUT de l'indexation ==== $(date +%H:%M:%S)" >> $PATH_LOG/indexer.log echo "$(date '+%Y-%m-%d %H:%M:%S') === DEBUT de l'indexation" >> $PATH_LOG/indexer.log
$PATH_BIN/indexer --rotate act >> $PATH_LOG/indexer.log $PATH_BIN/indexer --rotate act >> $PATH_LOG/indexer.log
echo "FIN ===== $(date +%H:%M:%S)" >> $PATH_LOG/indexer.log echo "$(date '+%Y-%m-%d %H:%M:%S') === FIN" >> $PATH_LOG/indexer.log

View File

@ -3,8 +3,7 @@ PATH_BIN=/usr/local/sphinx/bin
PATH_LOG=/dbs/sphinxlog PATH_LOG=/dbs/sphinxlog
PATH_SQL=/home/scripts/indexer/sql PATH_SQL=/home/scripts/indexer/sql
echo "$(date '+%Y-%m-%d %H:%M:%S') === DEBUT de l'indexation" >> $PATH_LOG/indexer.log
echo "DEBUT de l'indexation ==== $(date +%H:%M:%S)" >> $PATH_LOG/indexer.log
# nombre de lignes dans la table etab # nombre de lignes dans la table etab
output=$(mysql -h192.168.3.30 -usphinx -pindexer jo < $PATH_SQL/countDiri.sql) output=$(mysql -h192.168.3.30 -usphinx -pindexer jo < $PATH_SQL/countDiri.sql)
@ -37,4 +36,4 @@ else
echo "Il n'y a pas assez de lignes dans la nouvelle table dirigeants ($etab_tmp / $etab) !" >> $PATH_LOG/indexer.log echo "Il n'y a pas assez de lignes dans la nouvelle table dirigeants ($etab_tmp / $etab) !" >> $PATH_LOG/indexer.log
fi fi
echo "FIN ===== $(date +%H:%M:%S)" >> $PATH_LOG/indexer.log echo "$(date '+%Y-%m-%d %H:%M:%S') === FIN" >> $PATH_LOG/indexer.log

View File

@ -3,7 +3,7 @@ PATH_BIN=/usr/local/sphinx/bin
PATH_LOG=/dbs/sphinxlog PATH_LOG=/dbs/sphinxlog
PATH_SQL=/home/scripts/indexer/sql PATH_SQL=/home/scripts/indexer/sql
echo "DEBUT de l'indexation ==== $(date +%H:%M:%S)" >> $PATH_LOG/indexer.log echo "$(date '+%Y-%m-%d %H:%M:%S') === DEBUT de l'indexation" >> $PATH_LOG/indexer.log
# nombre de lignes dans la table etab # nombre de lignes dans la table etab
output=$(mysql -h192.168.3.30 -usphinx -pindexer jo < $PATH_SQL/countEtab.sql) output=$(mysql -h192.168.3.30 -usphinx -pindexer jo < $PATH_SQL/countEtab.sql)
@ -40,4 +40,4 @@ else
echo "Il n'y a pas assez de lignes dans la nouvelle table etablissement ($etab_tmp / $etab) !" >> $PATH_LOG/indexer.log echo "Il n'y a pas assez de lignes dans la nouvelle table etablissement ($etab_tmp / $etab) !" >> $PATH_LOG/indexer.log
fi fi
echo "FIN ===== $(date +%H:%M:%S)" >> $PATH_LOG/indexer.log echo "$(date '+%Y-%m-%d %H:%M:%S') === FIN" >> $PATH_LOG/indexer.log

View File

@ -18,10 +18,11 @@ Configuration :
$hostname = exec('echo $HOSTNAME'); $hostname = exec('echo $HOSTNAME');
$SPHINX_VERSION = array( $SPHINX_VERSION = array(
'0.9.9' => array('archive'=>'sphinx-0.9.9.tar.gz', 'dir'=>'sphinx-0.9.9'), '0.9.9' => array('archive'=>'sphinx-0.9.9.tar.gz', 'dir'=>'sphinx-0.9.9'),
'1.10' => array('archive'=>'sphinx-1.10-beta.tar.gz', 'dir'=>'sphinx-1.10-beta'), '1.10' => array('archive'=>'sphinx-1.10-beta.tar.gz', 'dir'=>'sphinx-1.10-beta'),
'2.0.8' => array('archive'=>'sphinx-2.0.8-release.tar.gz', 'dir'=>'sphinx-2.0.8-release'), '2.0.8' => array('archive'=>'sphinx-2.0.8-release.tar.gz', 'dir'=>'sphinx-2.0.8-release'),
'2.1.2' => array('archive'=>'sphinx-2.1.2-release.tar.gz', 'dir'=>'sphinx-2.1.2-release'), '2.1.2' => array('archive'=>'sphinx-2.1.2-release.tar.gz', 'dir'=>'sphinx-2.1.2-release'),
'2.1.7' => array('archive'=>'sphinx-2.1.7-release.tar.gz', 'dir'=>'sphinx-2.1.7-release'),
); );
/** /**