I am looking for a specific command/script for a cron job I want to perform.
Basically, I have a WordPress website that when you fill in a form writes a png file to a folder. usually with a name like 5d5bb3f4cdcad3.49988477.png.
Basically what I want to do is when a new file is detected in the folder ftp that file to an ftp server. Or preferably email the file, the server does run cPanel so I actually don't know if there is a command function for emailing.
I am used to working with powershell so linux is not my mother-tongue.