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

[LDM #NKK-599220]: pqact question

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [LDM #NKK-599220]: pqact question
  • Date: Fri, 10 Jul 2020 14:43:01 -0600

Hi Michael,

[I drove your inquiry into our LDM support email tracking system, 
<address@hidden>, so that others might benefit. I hope you don't mind.]

> In pqact.conf, regarding a FILE entry like this:
> 
> EXP       ABCdef([0-9][0-9]).xyz
> FILE        -close   -overwrite    /tmp/______________
> 
> How is the entire file name referenced following /tmp/     ???
> 
> I know I could say  "FILE      -close    -overwrite    /tmp/ABCdef\1.xyz
> 
> But what if I simply want the entire file name as say, a parameter?
> 
> Is there a \?  or a \ followed by some character that contains the entire
> file name, or is there some other way to reference the entire file name?

To reference the specified portion of the LDM product-identifier, move the 
parentheses to the beginning and end, i.e.,

    EXP       (ABCdef[0-9][0-9].xyz)
    FILE        -close   -overwrite    /tmp/\1

To ensure that this matches the entire product-identifier, however, you should 
anchor the pattern with beginning-of-string and end-of-string meta-characters:

    EXP       ^(ABCdef[0-9][0-9].xyz)$
    FILE        -close   -overwrite    /tmp/\1

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: NKK-599220
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.