Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 was marked as an exact duplicate of an existing question.

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

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
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

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