## 2) ensure postprocessing directories exist## If the script hasn't been run recently, there will # be a lot of files to sync across. The processing on the uhdas# server updates plenty of things in routine processing every few minutes.# If the script is then immediately run again, there will be a few files# that are updated every ping.## List of cruise segments to be processed is found in# ~/cruise/data/vmadcp/cruise_segmentsset rdir = ~/mounts/uhdas_dataset ldir = ~/cruise/data/vmadcpmkdir -p ${ldir}/atseamkdir -p ${ldir}/postprocessingforeach i (`cat ~/cruise/data/vmadcp/cruise_segments`)echo syncing ${i} to ${ldir}rsync -auv ${rdir}/${i} ${ldir}/atsea/mkdir -p ${ldir}/postprocessing/${i}/proc_editingmkdir -p ${ldir}/postprocessing/${i}/proc_archiveendecho end of syncing ${i} to ${ldir}