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

Re: 20150708: Question about LDM pattern-action file processing



Hi Tom,

re:

On 07/08/2015 09:50 AM, Tom Yoksas wrote:
Hi Carol,

re:
I'm in the process of running some new entries in the pqact of our main
ldm server. I'm not 100% why these new entries aren't working, but I
have an idea.
Ready...

re:
I'm looking for a set of files initially to archive them on our local
machine. Then later in the pqact I'm looking for those same files to
start running shell script. Is it possible that those files are can only
have 1 pqact entry?
No.  Each valid entry in an LDM pattern-action file (there can be multiple
ones) is processed in the order that they appear in the pattern-action
file.  If there is an error in an action below the one that is running,
all actions from that point on will be skipped.  One can do a gross
check on the validity of actions in a pattern action file by running:

<as 'ldm'>
ldmadmin pqactcheck

If an error is indicated, edit the pattern-action file, correct the error
and rerun 'ldmadmin pqactcheck'.  Continue the process until all errors
have been found and fixed.

I checked this and the pqact doesn't have errors, so this isn't the issue....

re:
Are the files already out of the queue by the time I
want to run the shell script?
No.  The product is piped to each action specified in the pattern-action
file entry.  This means that the existence of the product in the LDM
queue is not significant since it has already been read and is being
sent to each action.

The most likely causes for your second action to not be working are:

- an error in an action at or before the action that is not being
   run

- the extended regular expression (EREX) specified in the action that is
   not running does not match the Product ID for the product that
   is wanted to be processed
What does this mean? You aren't accessing the correct action in the first instance?

Are the EREXs for the two actions the same?

- there is an error in the script that is being run as the second
   action
I'm thinking this is the most likely issue. I would assume that the scripts and all of the files that are being accessed would need to be owned by ldm in order for the script to work properly?

Comment:

- if you can spot the problem in your pattern-action file, please send
   it and the script that the action that is not working is trying
   to run as attachments to a follow-up email so we can take a close
   look at your setup

Request:

In the future, please send LDM related inquiries to:

address@hidden

This will insure that it gets sent to our inquiry tracking system where
more than one Unidata staff member can see it and respond if they have
the answer.  Sending questions to our inquiry tracking system will
help prevent the case where the staff member a question is sent to is
unavailable for any reason (on travel, etc.).

OK will do!

Thanks,
Carol

Cheers,

Tom
--
+----------------------------------------------------------------------------+
* Tom Yoksas                                            UCAR Unidata Program *
* (303) 497-8642 (last resort)                                 P.O. Box 3000 *
* address@hidden                                  Boulder, CO 80307 *
* Unidata WWW Service                            http://www.unidata.ucar.edu/*
+----------------------------------------------------------------------------+


--
Carol Costanza
Antarctic Meteorological Research Center
University of Wisconsin-Madison Space Science and Engineering Center
1225 W Dayton St, Rm 947, Madison, WI 53706
Email: address@hidden
Web: http://amrc.ssec.wisc.edu


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.