Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-13-2010 #1
- Join Date
- Oct 2010
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
Could somone show me an example?
- 10-14-2010 #2
- 10-14-2010 #3
what do you mean you don't want to write a bash script? what do you think cronjob does and how it runs? it is basically a shell script, but it can run anything from there