Mail notification for uploading new file to srever by user


hi, i have a linux machine and some users have access to it. i want when any user creat a file or upload any file on server, it send me an email and inform me, please help me to write the script, i know how to use sendmail but i don’t know when to use it. and i don’t know which command to use for searching on directories to have any new file.
i would appritiate any help


try to acomplish this with ‘inotify’ utility. chek this page for usage [link][/link]