hello sir. any idea on how this lock file can be done? btw, the automatic downloader is only a windows machine, using WS_FTP PRO as the ftp software.
-----Original Message----- From: eric pareja Sent: Friday, April 05, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: Re: [plug] locking files on ftp??? On Thu, Apr 04, 2002 at 04:59:48PM +0800, Jan dela Cruz wrote: > a related issue... > > when in the process of currently ftp-ing a file (eg. a remote user put-ting > a file on a linux server running wu-ftpd, the file which grows in the server > (because a remote user is uploading), is it considered an open file, so > therefore it can't be opened for a download? > > that could happen while a user is uploading something then an automatic job > downloads the partially uploaded file... is that possible? if so how can > that be avoided? in the upload script, you could add a "lock" file to touch or upload before the actual file to be uploaded. the automatic job downloader in turn checks for the existence of the lock file before starting a download and if it exists will not start downloading. the upload script continues until it finishes it's uploading and then removes the "lock" file. _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
