On 6/22/05, daniel parkes <liquidsmail@gmail.com> wrote:
oops, I forgot one possible solution to meantion..
maybe an important one for you..
if you'd use pure-ftpd as your ftp-server you could try using 2 different
users
and directories to solve it.
2 users and 2 directories?? i just dont seem to get your idea here?
it sounds interesting could u please, explain it again??
THNxx!!!!
if you'd configure the pure-ftpd to chroot everyone to the users home dir, you could use for example one specific user and its home directory for uploading files (e.g. upload and /home/upload and another user and home directory for downloading files (e.g. download /home/download). The idea I meant behind this is that, when an file upload is in progess, no incomplete file would be downloaded as it does not exist in the download directory, yet. Once the upload to the upload directory has finished, pure-ftpd would trigger a simple move script, which moves the uploaded file to the download user's home directory /home/download/. If both homedirs are on the same harddisk partition the mv command only renames the file (the inode stays the same) and does not copy the file's content itself. So, once the filename appears in the the download user's homedir , you could be shure it's complete. does this help? markus
pure-ftpd has been compiled with the option "CallUploadScript". If you set this option to yes, it could trigger a script that simply moves the completed upload file from your "upload-directory" to your "download-directory". Put these two directories on the same partition.
see /etc/pure-ftpd/pure-ftpd.conf:
# If your pure-ftpd has been compiled with pure-uploadscript support, # this will make pure-ftpd write info about new uploads to # /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and # spawn a script to handle the upload.
#CallUploadScript yes
markus
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com