Re: Unique Filename

Randy,

>Date: Tue, 14 Jan 2003 16:23:15 -0600
>From: "Randy Breeser" <Randy.Breeser@xxxxxxxx>
>Organization: NWS La Crosse Wisconsin
>To: ldm-users@xxxxxxxxxxxxxxxx
>Subject: Unique Filename

The above message contained the following:

> First let me say that I am pretty new to LDM and I hope that I am 
> posting this question to the right list...if not maybe someone will 
> point me to a beginners list.
> 
> I need to generate a unique filename in pqact.conf so that files will 
> not overwrite those already in a que. Below is what I have done so far.
>  I added "%M%S" here but this will only resolve to one second. Not quite 
> good enough...it is possible that 2 files could be processed during the 
> same second. The "NEWFILE.dat" part of the filename cannot change nor 
> can the path.
> 
> EXP     .*(transfile.dat)        FILE    -overwrite      
> /some/file/path/NEWFILE.dat%M%S
> 
> Any help would be greatly appreciated.

If you're worried about multiple files being processed in the same
second, then it seems to me that you're in a bad situation for the
following reasons:

    1.  You could end-up with thousands upon thousands of files in a
        single directory.

    2.  The scour(1) facility might not be sufficient to keep the number
        of files down to a managable level.

It could be that, with a little thought, a solution could be found that
obviates the need for sub-second resolution.  What are these files and
what are you trying to do with them?  Does there product-ID containing
nothing that could be useful?

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: