Merge pull request #652 from tiffanycmeyer13/unidata_20.3.2
More updates to checkFileTime.sh script to work correctly
This commit is contained in:
commit
89e0cc9f8b
1 changed files with 21 additions and 12 deletions
|
@ -8,7 +8,8 @@
|
|||
#
|
||||
# Updates
|
||||
# Jan 12, 2024 - First stab at translating from our existing perl script
|
||||
#
|
||||
# Jan 16, 2024 - Update path to qpidNotify.py
|
||||
# Jan 17, 2024 - Move file out of staging directory before calling qpidNotify.py
|
||||
#
|
||||
|
||||
# We want to concatenate grib and bufr files
|
||||
|
@ -21,11 +22,19 @@ do
|
|||
files=($(find $path -name "*-concat-*" -mmin +2 | grep "staging"))
|
||||
unset IFS
|
||||
|
||||
# echo ${#files[@]}
|
||||
for file in "${files[@]}";
|
||||
do
|
||||
/awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $file
|
||||
echo $file
|
||||
# get the parent directory the staging dir is in
|
||||
dir=$(dirname $file)
|
||||
filename=$(basename $file)
|
||||
parentDir=$(dirname $dir)
|
||||
# move file to parent dir
|
||||
mv $file $parentDir
|
||||
|
||||
newFile=$parentDir/$filename
|
||||
|
||||
echo "Running /awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $newFile"
|
||||
|
||||
/awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $newFile
|
||||
done
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue