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
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
I'd use incron. This uses the kernel's inotify hooks to run arbitrary commands on specified filesystem events.
I was able to accomplish this with ProFTPd & the
mod_exec
module.