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 |
|
mTyp=`echo $HOSTTYPE | sed 's/-.*$//'` |
20 |
|
unpck=$HOME/testing/munpack.$mTyp |
21 |
|
#ls -l $unpck |
22 |
|
|
23 |
#-- create a daily log file (if not already there) |
#-- create a daily log file (if not already there) |
24 |
cd /home/jm_c/testing/logs |
cd $HOME/testing/logs |
25 |
logpfx="prc_emails_" ; sfx=`date +%m%d` |
logpfx="prc_emails_" ; sfx=`date +%m%d` |
26 |
logfile="../logs/${logpfx}$sfx" |
logfile="../logs/${logpfx}$sfx" |
27 |
if test -e $logfile ; then : |
if test -e $logfile ; then : |
36 |
fi |
fi |
37 |
echo ' create new log file:' $logfile |
echo ' create new log file:' $logfile |
38 |
touch $logfile |
touch $logfile |
39 |
|
echo "Log file created from '"`hostname`"' by '$USER' on:" `date` >> $logfile |
40 |
fi |
fi |
41 |
|
|
42 |
#-- parse emails : |
#-- get and parse emails : |
43 |
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 |
44 |
#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 |