Quote:
Originally Posted by rajesh0013
Using a shell script....In a particular directory if we are adding one or more files i should get a mail to my mail id , every time when the new file is added i should get the mail.Using crontab so that it will execute automatically wen any new files are added.
|
Ok...is there a question in here somewhere??
Is this what you
WANT to do, or what you're
TRYING to do? If you're wanting to do this, the answer is yes, you can. If you're trying to do it, post the code you've written so far, and where it's failing, and we can help you.
Post relevant details, like version/distro of Linux, how often you want it to check, etc., and what error(s) you're having in your script. Otherwise, there are many bash scripting tutorials you can find on Google, that you can use to write this. We are
not going to write a script for you, but will be glad to help if you're having a problem.