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?
auditd
to watch a folder, your ftp daemon allow to execute a script on each upload, or a cron job every minute to generate it every minute or every 5 minutes with a temp image when thumbnail not yet generated – Kiwy Mar 11 '14 at 15:18