Bug 2668 - Implement event handler to launch external scripts
Summary: Implement event handler to launch external scripts
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp-server (show other bugs)
Version: 7.4p1
Hardware: Other All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-22 18:18 AEDT by ab231
Modified: 2021-04-23 15:09 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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