[TAG] Question about file mtime on linux
mso@oz.net
mso
Fri Apr 15 02:43:13 MSD 2005
Ben wrote:
> On Thu, Apr 14, 2005 at 06:33:38PM +0100, Pete Jewell wrote:
>> On Thursday 14 Apr 2005 05:47, Suramya Tomar wrote:
>> [snip]
>> > Now I will be looking into the other suggestions you
>> > guys made and see if I can get this to work. (And no
>> > this is not a school project :) ) I need to export
>> > data from an oracle DB to a CSV file and have another
>> > script read this CSV file and process it. If the
>> > second script reads a half written file 'Bad Things'
>> > (TM) will happen.
>>
>> If that's the case, then a low tech solution might suffice. Write your
>> CSV file out from oracle as something like 'temp_output.csv', and then
>> have your oracle process rename the file once it's fully exported. Then
>> your perl script is only looking for the renamed file, instead of trying
>> to guess when the file creation is complete.
>
> Oh, *nice* solution, Pete!
Yes, a round of <drink of choice> for Pete Jewell at the TAG bar. Our
bartender Jimmy may have it already poured it you've told him what your
favorite is.
More information about the TAG
mailing list