awips2/rpms/awips2.edex/Installer.edex/programs/qpidNotify.py
2017-11-10 10:49:29 -07:00

16 lines
365 B
Python
Executable file

#!/awips2/python/bin/python
# simple wrapper to the qpidNotify Python module
from awips.qpidingest import *
import sys
def run():
try:
if len(sys.argv) == 3:
file = sys.argv[1]
header = sys.argv[2]
conn.sendmessage(file, header)
except: NameError
if __name__ == '__main__':
conn = IngestViaQPID()
run()