[TAG] Question about file mtime on linux
pete at phraxos.nildram.co.uk
Thu Apr 14 21:33:38 MSD 2005
On Thursday 14 Apr 2005 05:47, Suramya Tomar wrote:
> 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.
More information about the TAG