Results 1 to 2 of 2
Hi I am very new to linux. I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files ...
- 10-13-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 2
cronjob help
Hi I am very new to linux. I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.
All I have is this...
*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]
I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep
Thanks,
LN
- 10-13-2010 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,096
Hello, and welcome to the forums, LinuxNeo!
Sorry, but duplicate threads/posts are not allowed but you can continue any discussion on this topic in your original thread.
Thank you.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.


