lkml.org 
[lkml]   [2001]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: FTP query
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.026 / U:11.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site