Fix typo in path to qpidNotify.py and remove Unidata specific notifyAWIPS script
This commit is contained in:
parent
32efdc9ec1
commit
4cb4989a51
2 changed files with 1 additions and 25 deletions
|
@ -24,8 +24,7 @@ do
|
|||
# echo ${#files[@]}
|
||||
for file in "${files[@]}";
|
||||
do
|
||||
/awips2/python/bin/python /awips2/ldm/dev/notifyAWIPS2-unidata.py $file
|
||||
# /awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify.py $file
|
||||
/awips2/python/bin/python /awips2/fxa/bin/src/qpidNotify/qpidNotify.py $file
|
||||
echo $file
|
||||
done
|
||||
done
|
||||
|
|
|
@ -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()
|
||||
|
Loading…
Add table
Reference in a new issue