6

How would I run a script after a file has been successfully uploaded over (a chrooted) SFTP?

I have this working on standard FTP connection using PureFTP

http://linux.die.net/man/8/pure-uploadscript

I'm running Debian Squeeze

Petah
  • 650
  • 2
  • 13
  • 24

2 Answers2

3

I'd use incron. This uses the kernel's inotify hooks to run arbitrary commands on specified filesystem events.

EEAA
  • 108,414
  • 18
  • 172
  • 242
2

I was able to accomplish this with ProFTPd & the mod_exec module.

Michael Robinson
  • 418
  • 2
  • 7
  • 19