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

[LDM #QOQ-440372]: question to use LDM to transfer and oqverwrite files



Wenwu.

> I have a question to use LDM to transfer and overwrite files.
> 
> I have files updating 4 times per hour, but the file has the same file
> name is the hour. I hope LDM overwrite old file (not append new file at
> the end of old file). The line in pqact.conf file is:
> 
> WMO
> ^/home/gagecor/data/QPESUMS/conus/grid/([^/]*)/([^/]*)/([0-9A-Z]*.[A-Z]*.[0-9][0-9][0-9][0-9][0-1][0-9][0-3][0-9].[0-2][0-9][0-5][0-9]).gz
> FILE    -overwrite
> /verif_data/input_data/conus/q2_gc/\1/\2/\3.gz
> 
> But it looks like I have new file appended at the end of old file. Is
> there any thing wrong in the pqact setting?

I would add the "-flush" option to your pqact(1) configuration-file entry
but, other than that, your entry should do what you want.  If multiple
data-products are being appened to the file, then I suspect that either
another pqact(1) configuration-file entry is responsible or that another
pqact(1) process is running.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: QOQ-440372
Department: Support LDM
Priority: Normal
Status: Closed