I have an FTP server (Debian) setup where users send JPG images.
I need a process running on the background that every time a picture is sent via FTP a bash script is executed for generating thumbnail files for each image uploaded.
I already have the script that generates the thumbnail, the problem is it needs to be executed manually, but what I want is the script to be executed each time an image file is uploaded.
How can this work?