I have a process that starts with an end user copying picture files to a Ubuntu folder over ftp using filezilla software. On the other hand I have a batch file that gets executed using CRON it is scheduled to be executed at midnight.
My problem is that sometimes the amount of pictures is huge and the ftp process is still running at midnight causing a mess with the pictures in the end.
I would like to fix this by triggering the bash script when the ftp process is over. Is there a way to do this?
Edit: the ftp server I am using is the one that comes with xampp 1.6 which is proftpd