/[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.5 by jmc, Wed Mar 5 00:56:11 2008 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 :
41  cd /u/u2/jmc/testing/front_content && ./parse_emails -u $unpck -v -a jmc@ocean.mit.edu >> $logfile 2>&1  cd /u/u2/jmc/testing/front_content && ./parse_emails -u $unpck -a jmc@ocean.mit.edu >> $logfile 2>&1
42    

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

  ViewVC Help
Powered by ViewVC 1.1.22