X-Git-Url: https://git.llucax.com/z.facultad/75.08/llamadas.git/blobdiff_plain/8c250233daf2cf0ea36343c30bf60c0ba70760ad..977da92c915bb7ed530ea64d044a3f0f038c50f0:/inst/afimonio?ds=inline diff --git a/inst/afimonio b/inst/afimonio index 071de72..90ea831 100644 --- a/inst/afimonio +++ b/inst/afimonio @@ -85,15 +85,7 @@ while true; do fecha=$(date +%d/%m/%Y-%H:%M) echo "$fecha $USER afimonio:\"Se rechaza el archivo $file\"" >> $LOGFILE fi - # Verifico que el logfile no se pase del tamaƱo maximo - tam=`stat -c '%s' $LOGFILE` - # Si se paso del maximo dejo las ultimas 100 lineas - if [ "$tam" -ge "$AFIM_LOGSIZE" ]; then - echo tail -n 100 $LOGFILE \> "$LOGDIR/$0.$$.temp" - echo mv "$LOGDIR/$0.$$.temp" $LOGFILE - tail -n 100 $LOGFILE > "$LOGDIR/$0.$$.temp" - mv "$LOGDIR/$0.$$.temp" $LOGFILE - fi + clean_log "$LOGFILE" "$AFIM_LOGSIZE" done #for # me fijo si el antifraude esta corriendo y si no lo esta lo arranco if [ -n $files ] && ! is_lock "antifraude.pl"; then