I have a Linux web server that will have a flash form to process user information. This creates a text file in a directory outside of the public area using the date and time for the filename.

What I need is this, whenever a file is created in that directory the system should send me an email notification. I don't need the contents of the file or the file as an attachment, just a notice.

Seems simple enough but I don't have a clue where to start, any help would really be appreciated.

10 Years
Discussion Span
Last Post by tmonaghan

Yes, I could add that to the form. I thought such a script would be useful for other tasks as well.


you can write it. simple script to ls /dir/dir >logfile.log in cron to run every once in a while
let the script compare the previous logfile to the one created now. if different - send notification

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.