dendenners
Programmer
Hey there,
I have a cron job that checks whether a file exists in a certain place every hour, and if it does, copies it to a different directory. However, the application that writes the file does not seem to rename the file once it is completely written. Thus there is a chance that my cron job may detect the file when it is only half-written, and copy only half the file to my required location. I was wondering is there some AIX flag that marks a file as not being completely written, or is that left to the program that writes the file. Thanks
I have a cron job that checks whether a file exists in a certain place every hour, and if it does, copies it to a different directory. However, the application that writes the file does not seem to rename the file once it is completely written. Thus there is a chance that my cron job may detect the file when it is only half-written, and copy only half the file to my required location. I was wondering is there some AIX flag that marks a file as not being completely written, or is that left to the program that writes the file. Thanks