1

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.

rdsoze
  • 111
  • 3
  • 1
    [This is a similar question on SO](http://stackoverflow.com/q/3070555); `inotify` can also watch directories, so the answers there might help. (You could also use something like [`pyftpdlib`](http://code.google.com/p/pyftpdlib/) (or something like that for your language of choice) to integrate the FTP server functionality in your application.) – sr_ Sep 25 '12 at 08:40

1 Answers1

0

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.

daisy
  • 53,527
  • 78
  • 236
  • 383
  • 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 01:54