Messages in this thread |  | | Date | Wed, 7 Nov 2001 13:16:19 -0800 | From | Mike Fedyk <> | Subject | Re: 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/
|  |