Changeset 1768
- Timestamp:
- 06/12/12 15:44:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/enlarge_my_files.sh
r1766 r1768 30 30 echo " The following directory must exist where the command enlarge_my_files is run:" 31 31 echo " enlarge_my_files" 32 echo " |-- with_ncrcat"32 echo " |-- output_ncrcat" 33 33 echo " | |-- set_000001.list" 34 34 echo " | |-- set_000002.list" … … 36 36 echo " | |-- set_000004.list" 37 37 echo " | \`-- set_000005.list" 38 echo " \`-- with_tar"38 echo " \`-- output_tar" 39 39 echo 40 40 echo "Options:" … … 111 111 echo "====> DELEGATE to tar command with option --switchtotar" 112 112 echo "DELEGATE to tar command with option --switchtotar" >> $statusfile 113 mv $set $PATH_SIMU/ with_tar113 mv $set $PATH_SIMU/output_tar 114 114 continue 115 115 fi … … 151 151 varstoexclude="t_inst_.*,$varstoexcludefiltered" 152 152 extratar=1 153 # Copy to with_tar directory154 cp $set $PATH_SIMU/ with_tar153 # Copy to output_tar directory 154 cp $set $PATH_SIMU/output_tar 155 155 fi 156 156 … … 158 158 # Try 2 times before fire "FAILED" 159 159 ncrcatcmd=ncrcat 160 #ncrcatoptions="--md5_digest"161 ncrcatoptions=""160 ncrcatoptions="--md5_digest" 161 # ncrcatoptions="" 162 162 163 163 cat $set | $ncrcatcmd $ncrcatoptions -O -x -v $varstoexclude -o $outputfile > $logfile 2>&1 … … 182 182 echo "====> DELEGATE to tar command after $nbtries tries (maxtries=$maxtries)" 183 183 echo "DELEGATE to tar command after $nbtries tries (maxtries=$maxtries)" >> $statusfile 184 cp $set $PATH_SIMU/ with_tar184 cp $set $PATH_SIMU/output_tar 185 185 fi 186 186 fi … … 227 227 228 228 filefirst=`head -n 1 $set` 229 dirinputfile=`dirname $filefirst` 229 230 diroutputfile=`dirname $filefirst | sed -e "s%$dirin%$dirout%"` 230 231 … … 248 249 # #----------------------------------- 249 250 250 $tarcmd $taroptions $ diroutputfile/$outputfile --dereference --files-from $set.local > $logfile 2>&1251 $tarcmd $taroptions $outputfile --dereference --files-from $set.local > $logfile 2>&1 251 252 if [ $? -eq 0 ] ; then 252 253 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"`
Note: See TracChangeset
for help on using the changeset viewer.