--- mitgcm.org/front_content/parse_emails 2005/11/28 13:34:31 1.5 +++ mitgcm.org/front_content/parse_emails 2007/11/30 00:45:55 1.9 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/parse_emails,v 1.5 2005/11/28 13:34:31 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/parse_emails,v 1.9 2007/11/30 00:45:55 jmc Exp $ # # The purpose of this script is to parse the emails produced by the # MITgcm/verificaton/testreport script and store the data in a @@ -28,7 +28,7 @@ INDIR="/u/edhill/Mail/MITgcm-test" OUTDIR= TEMPDIR=./ptmp -MUNPACK=/usr/local/bin/munpack +MUNPACK=/u/edhill/local/bin/munpack # Parse options ac_prev= @@ -83,6 +83,8 @@ echo "ERROR: directory \"$OUTDIR\" doesn't exist and can't be created" exit 1 fi + chgrp gcmpack $OUTDIR + chmod 775 $OUTDIR fi echo "Using OUTDIR=\"$OUTDIR\"" @@ -127,13 +129,13 @@ while test -e $OUTDIR"/"$tdir"_"$ad ; do ad=$(( $ad + 1 )) done - mv $TEMPDIR"/"$tdir $OUTDIR"/"$tdir"_"$ad + mv $TEMPDIR"/"$tdir $OUTDIR"/"$tdir"_"$ad > /dev/null 2>&1 chmod -R a+rx $OUTDIR"/"$tdir"_"$ad > /dev/null 2>&1 - gzip $OUTDIR"/"$tdir"_"$ad"/output.txt" +# gzip $OUTDIR"/"$tdir"_"$ad"/output.txt" else - mv $TEMPDIR"/"$tdir $OUTDIR + mv $TEMPDIR"/"$tdir $OUTDIR > /dev/null 2>&1 chmod -R a+rx $OUTDIR"/"$tdir > /dev/null 2>&1 - gzip $OUTDIR"/"$tdir"/output.txt" +# gzip $OUTDIR"/"$tdir"/output.txt" fi # remove the original file