Sorry for this extra SUMMARY.
One of my 2 original question was:
----- Begin Included Message -----
1: How do I check if a file is opened by some process?
At the prompt, and in a C-program ?
I want to be able to decide when a file that is being
transferred by FTP has been written in it's entirety,.
----- End Included Message -----
In the first summary, I claimed that I couldn't handle this with
neither lsof nor fuser (the first a public domain tool, the second
a sun os command).
I did this on the basis of a small program written by myself, that
opens a file and writes a huge number of bytes one by one.
Today I retrieved version 3.29 of lsof, and tried transferring a
big file with ftp and both lsof and fuser reported the file open.
Trying again with my own program, lsof (the new version) could
detect that the output-file was open but fuser couldn't. I'm not
wizard to the degree of understanding that.
I apologize for the premature summary of yesterday.
Morten Krabbe Barfoed
Danish Space Research Institute phone: +45 45 88 22 77 (switch-board)
Gl. Lundtoftevej 7 phone: +45 45 87 40 77 - 161 (direct)
DK 2800 Lyngby FAX: +45 45 93 02 83
Denmark e-mail: email@example.com
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:26 CDT