How start an action when a file has been transferred
I have a ftp-server with several user-accounts. When a user sends in a file via ftp, the file is to be immediately and automatically sent to other servers.
Question is, what kind of trigger is there, that I could use to get an action/shell script running immediately after a file has been ftp:d to this server?
(I could of course create a cronjob that checks for files in specific locations, every 5 minutes or so, but it's not my preferred way.)
So, to be clear:
User logs in via ftp -> user sends file -> file storage on server is complete !TRIGGER!
|