Skip to contentSkip to conversation

FTP query

DISCUSSION [email protected] 2 participants 2 messages Nov 7, 2001

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · 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.

Quoted 6 lines

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