/[MITgcm]/mitgcm.org/scripts/process_emails
ViewVC logotype

Diff of /mitgcm.org/scripts/process_emails

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6 by jmc, Thu Mar 10 16:53:43 2011 UTC revision 1.8 by jmc, Mon Jan 8 14:17:59 2018 UTC
# Line 27  else Line 27  else
27    echo -n '-- in dir: ' ; pwd    echo -n '-- in dir: ' ; pwd
28    n=$(( `ls ${logpfx}* | wc -l` - 10 ))    n=$(( `ls ${logpfx}* | wc -l` - 10 ))
29    if test $n -gt 0 ; then    if test $n -gt 0 ; then
30    echo -n ' remove files: '    echo -n ' remove files: '
31      ls -lt ${logpfx}* | tail -"$n"      ls -lt ${logpfx}* | tail -"$n"
32      ls -t  ${logpfx}* | tail -"$n" | xargs rm -f      ls -t  ${logpfx}* | tail -"$n" | xargs rm -f
33    fi    fi
34    echo ' create new log file:' $logfile    echo ' create new log file:' $logfile
35    touch $logfile    touch $logfile
36      echo "Log file created from '"`hostname`"' by '$USER' on:" `date` >> $logfile
37      chmod 664 $logfile
38  fi  fi
39    
40  #-- parse emails :  #-- parse emails :

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22