Bug 2668

Summary: Implement event handler to launch external scripts
Product: Portable OpenSSH Reporter: ab231 <z.pekar>
Component: sftp-serverAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: enhancement CC: djm, z.pekar
Priority: P5    
Version: 7.4p1   
Hardware: Other   
OS: All   

Description ab231 2017-01-22 18:18:21 AEDT
It would be nice to be able to launch external scripts upon certain sftp-server events (like file successfully uploaded/moved/deleted) with the name/path of the relevant file being passed to the script. This can be useful for file synchronization to another host or automatic manipulation of uploaded files.

Thank you!
Comment 1 Damien Miller 2017-04-28 14:14:56 AEST
We don't intend to implement anything like this in sftp-server. I suggest that you build something around fsnotify: https://github.com/fsnotify/fsnotify
Comment 2 Damien Miller 2021-04-23 15:09:40 AEST
closing resolved bugs as of 8.6p1 release