Merge pull request #651 from tiffanycmeyer13/unidata_20.3.2

Fix typo in path to qpidNotify.py and remove Unidata specific notifyA…
This commit is contained in:
srcarter3 2024-01-16 16:46:26 -07:00 committed by GitHub
commit 62541a1a48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 25 deletions

View file

@ -24,8 +24,7 @@ do
# echo ${#files[@]} # echo ${#files[@]}
for file in "${files[@]}"; for file in "${files[@]}";
do do
/awips2/python/bin/python /awips2/ldm/dev/notifyAWIPS2-unidata.py $file /awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $file
# /awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify.py $file
echo $file echo $file
done done
done done

View file

@ -1,23 +0,0 @@
#!/awips2/python/bin/python
#from ufpy import qpidingest
from sys import argv
from os import path
from awips.qpidingest import *
#read in command line argument as path
inPath = argv[1]
header = path.basename(inPath)
#make connection to QPID
#conn = qpidingest.IngestViaQPID(host='cpsbn1',port=5672,ssl=True)
conn = IngestViaQPID()
#send message to QPID
print ("sending %s with a header of %s"%(inPath,header))
conn.sendmessage(inPath,header)
#close QPID connection
conn.close()