in reply to Re: Renaming an image file
in thread Renaming an image file
... use the start time of the script ($^T) as a base index, and increment from there. And if you restart the script, it won't collide with any names from before
How much would you like to bet on that idea?
$^T has second resolution. Start the script at some point T in time. $filename=T at start of script. Process 100 files in 60 seconds, with $filename++ for each file. $filename=T+100 at end of script. Start again for the next set of files at T+65 seconds. First $filename=$^T=T+65. Instant collision.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Renaming an image file
by mjscott2702 (Pilgrim) on Nov 28, 2010 at 13:49 UTC | |
by BrowserUk (Patriarch) on Nov 28, 2010 at 14:00 UTC | |
by mjscott2702 (Pilgrim) on Nov 28, 2010 at 14:12 UTC | |
|
Re^3: Renaming an image file
by Anonymous Monk on Nov 28, 2010 at 13:20 UTC |