LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-05-2009, 03:00 PM   #1
ronenu
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Question How To AutoDelete file from homedir after the file was download by FTP ?


Hi all

I configured VSFTPD server on Centos 5.
all local users are chroot to their home dir.

i as the administrator upload files to their home dir's.

i need the file to be deleted from their home dir after the first successful download.
so nobody will be able to download the same file twice.


i searched the web for solution but i didnt find any.
i know that its not a built in feature of VSFTPD
and that i need some script to run in the background to do this.

my guess is that this script should read the /var/log/xferlog file.
and auto delete files from there.

can any one tell me how to write script like that
or if you have another solution please let me know.

thank you.
 
Old 11-06-2009, 07:58 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
What format does your xferlog have?
Can you post an example of a line that you want to pick out?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script for make schedule for automatically download file from ftp site chenboly Linux - General 6 10-05-2015 04:41 AM
FTP file download off of production directory cjusa Linux - Security 5 07-09-2008 03:29 PM
Preventing FTP download and upload the same file simultaneously benw Linux - Networking 2 08-29-2005 08:34 AM
How to write a shell script to download a file via FTP? guarriman Linux - General 4 12-21-2004 09:31 AM
The .cshrc file is missing from the user homedir vut Linux - Software 1 11-23-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration