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

Diff of /mitgcm.org/scripts/prc_tr_emails

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

revision 1.1 by jmc, Wed Jan 3 23:19:50 2018 UTC revision 1.5 by jmc, Fri Jan 12 15:51:57 2018 UTC
# Line 10  Line 10 
10  #EOF  #EOF
11    
12  #-- build munpack if needed:  #-- build munpack if needed:
13  unpck=/home/jm_c/testing/tools_mpack/munpack  unpck=$HOME/testing/tools_mpack/munpack
14  if test ! -x $unpck ; then  if test ! -x $unpck ; then
15   MPACKDIR=`dirname $unpck`   MPACKDIR=`dirname $unpck`
16   cd $MPACKDIR   cd $MPACKDIR
17   ./configure && make   ./configure && make
18  fi  fi
19    unpck=$HOME/testing/munpack.$HOSTTYPE
20    #ls -l $unpck
21    
22  #-- create a daily log file (if not already there)  #-- create a daily log file (if not already there)
23  cd /home/jm_c/testing/logs  cd $HOME/testing/logs
24  logpfx="prc_emails_" ; sfx=`date +%m%d`  logpfx="prc_emails_" ; sfx=`date +%m%d`
25  logfile="../logs/${logpfx}$sfx"  logfile="../logs/${logpfx}$sfx"
26  if test -e $logfile ; then :  if test -e $logfile ; then :
# Line 33  else Line 35  else
35    fi    fi
36    echo ' create new log file:' $logfile    echo ' create new log file:' $logfile
37    touch $logfile    touch $logfile
38      echo "Log file created from '"`hostname`"' by '$USER' on:" `date` >> $logfile
39  fi  fi
40    
41  #-- parse emails :  #-- get and parse emails :
42  cd /home/jm_c/testing/front_content && ./get+parse_msg -u $unpck -a jmc@ocean.mit.edu >> $logfile 2>&1  cd $HOME/testing/front_content && ./get+parse_msg -u $unpck -a jmc@ocean.mit.edu >> $logfile 2>&1
43  #cd /home/jm_c/testing/temp && ./get+parse_msg -u $unpck -a jmc@ocean.mit.edu >> $logfile 2>&1  #cd $HOME/testing/temp && ./get+parse_msg -u $unpck -a jmc@ocean.mit.edu >> $logfile 2>&1

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

  ViewVC Help
Powered by ViewVC 1.1.22