Hi,
Sorry for posting it to the wrong list. But people here can surely help me
out.
Let us suppose a operator is FTPing a file "temp.c" to a folder "/home/work".
And a process "A" is monitoring "/home/work". How would process "A" would know a
file "temp.c" is completely transfered in "/home/work"
Please CC it to me as I am not subscribed to list
Thanks in anticipation
Amol
On Wed, Nov 07, 2001 at 07:33:48PM +0530, [email protected] wrote:
>
>
> Hi,
> Sorry for posting it to the wrong list. But people here can surely help me
> out.
>
> Let us suppose a operator is FTPing a file "temp.c" to a folder "/home/work".
> And a process "A" is monitoring "/home/work". How would process "A" would know a
> file "temp.c" is completely transfered in "/home/work"
>
> Please CC it to me as I am not subscribed to list
>
There are several ways, some only available to a root process...
Root priv required:
run lsof -n on the file to see if the ftp server still has it open...
normal user:
monitor modified time and size over a period of time to see if it has
changed in that time, if not, it's done...
Mike