linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FTP query
@ 2001-11-07 14:03 alad
  2001-11-07 21:16 ` Mike Fedyk
  0 siblings, 1 reply; 2+ messages in thread
From: alad @ 2001-11-07 14:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: alad



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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FTP query
  2001-11-07 14:03 FTP query alad
@ 2001-11-07 21:16 ` Mike Fedyk
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Fedyk @ 2001-11-07 21:16 UTC (permalink / raw)
  To: alad; +Cc: linux-kernel

On Wed, Nov 07, 2001 at 07:33:48PM +0530, alad@hss.hns.com 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-07 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 14:03 FTP query alad
2001-11-07 21:16 ` Mike Fedyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).