•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 455,990 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,762 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 547 | Replies: 6
![]() |
•
•
Join Date: Dec 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
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.
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.
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
let the script compare the previous logfile to the one created now. if different - send notification
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)
BA BizMg, MCSE, DCSE, Linux+, Network+
BA BizMg, MCSE, DCSE, Linux+, Network+
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Shell Scripting Forum
- Previous Thread: Please help
- Next Thread: I need full guide of writing c shell script



Linear Mode