[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #TIR-641147]: Purpose of _BEGIN_ dummyprod for pqact ?



Hi Daryl,

> Curiousity kills my cat again.  I was finetooth combing some of my code
> today and ran into this situation:
> 
> ldmd.conf has:
> 
> EXEC    "pqact -f NIMAGE -v pyWWA/pqact-gini.conf"
> 
> my pyWWA/pqact-gini.conf has:
> 
> ###
> # Process GINI imagery through a customized python script, send the entire
> # pqact name to the decoder for logging purposes
> #
> # NIMAGE      ^(.*TIG(E|W|H|P|A)0. KNES.*)$
> NIMAGE        ^(.*)$
> PIPE  -close  /usr/bin/python pyWWA/gini2gis.py \1
> 
> When ldm fires up, this gets logged:
> 
> Nov 27 15:15:47 laptop pqact[11620] NOTE: Starting Up
> Nov 27 15:15:47 laptop pqact[11620] INFO: Successfully read
> configuration-file "/home/ldm/pyWWA/pqact-gini.conf"
> Nov 27 15:15:47 laptop pqact[11620] NOTE: Starting from insertion-time
> 2012-11-27 21:15:45.595316 UTC
> Nov 27 15:15:47 laptop pqact[11620] INFO: 20121127211545.595 TS_ENDT
> {{NIMAGE,  ".*"}}
> Nov 27 15:15:47 laptop pqact[11620] INFO:        0 20121127211547.786
> ANY 000  _BEGIN_
> Nov 27 15:15:47 laptop pqact[11620] INFO:                pipe:
> -close#011/usr/bin/python pyWWA/gini2gis.py _BEGIN_
> Nov 27 15:15:47 laptop pqact[11620] INFO: Deleting closed PIPE entry:
> pid=11625, cmd="-close /usr/bin/python pyWWA/gini2gis.py _BEGIN_"
> [filel.c:290]
> Nov 27 15:15:48 laptop pqact[11620] ERROR: child 11625 exited with status
> 1
> 
> So I am trying to understand this '_BEGIN_' dummpyprod.  Or course, I see
> where this is coming from in the source code, but I am not sure of the
> purpose.  Thanks for educating me again...

Before it begins regular processing of data-products, pqact(1) will process a 
product whose identifier is "_BEGIN_" -- providing there's a matching entry in 
its configuration-file.

It's a holdover from when pqact(1) was being developed.

> thanks!
> daryl
> 
> --
> /**
> * Daryl Herzmann
> * Assistant Scientist -- Iowa Environmental Mesonet
> * http://mesonet.agron.iastate.edu
> */

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: TIR-641147
Department: Support LDM
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.