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
  • 12
  • 24

2 Answers2

3

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

EEAA
  • 107,877
  • 18
  • 170
  • 241
2

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

Michael Robinson
  • 408
  • 2
  • 7
  • 19