Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing large files to AIX

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE
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
 
Try the "fuser" command
-c Reports on any open files in the file system containing File.
-f Reports on open instances of File only.
-u Provides the login name for local processes in parentheses after the process number.
-V Provides verbose output.
-x
Used in conjunction with -c or -f, reports on executable and loadable objects in addition to the standard fuser output.

:eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top