Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
How to run a command when a directory's contents are updated?

I need to be notified and perform other tasks when a file is uploaded onto my server. Is there any method/system call that will be triggered or anything that I can hook onto?

I'm using vsftpd as my ftp server.

share|improve this question

marked as duplicate by Gilles, jasonwryan, warl0ck, Renan, Tim Kennedy Sep 26 '12 at 19:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
This is a similar question on SO; inotify can also watch directories, so the answers there might help. (You could also use something like pyftpdlib (or something like that for your language of choice) to integrate the FTP server functionality in your application.) –  sr_ Sep 25 '12 at 8:40
add comment

1 Answer 1

Use dazukofs then, but it's unlikely to be supported in latest kernels, you will need to patch it manually.

Many AV uses dazukofs as on-access scan approach.

share|improve this answer
1  
According to the website, dazuko has no maintainer and the latest release is more than a year old. It sounds like a heavyweight solution which inotify/similar can solve more easily (and with less kernel patching) –  Ben Graham Sep 26 '12 at 1:54
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.