116 |
else CMDLINE="$CMDLINE '$xx'" ; fi |
else CMDLINE="$CMDLINE '$xx'" ; fi |
117 |
done |
done |
118 |
#for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done |
#for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done |
119 |
DATE=`date +%Y%m%d` |
DATE='' |
120 |
|
if test -f tr_out.txt ; then |
121 |
|
# try to use the date corresponding to 'Start time:' in file "tr_out.txt" : |
122 |
|
sTime=`grep '^Start time: ' tr_out.txt 2>/dev/null | sed 's/Start time: //'` |
123 |
|
if test "x$sTime" != x ; then DATE=`date -d "$sTime" "+%Y%m%d" 2>/dev/null` ; fi |
124 |
|
fi |
125 |
|
# otherwise, use current date: |
126 |
|
if test "x$DATE" = x ; then DATE=`date +%Y%m%d`; fi |
127 |
BASE="rs_"$OUTDIR"_"$DATE"_" |
BASE="rs_"$OUTDIR"_"$DATE"_" |
128 |
xx=0 |
xx=0 |
129 |
DRESULTS="$BASE$xx" |
DRESULTS="$BASE$xx" |