Search Results

Search: Posts Made By: gardellap
11,489
Posted By gardellap
This worked but.....
This works but it's probably sloppy and the only way so far I could do it (OK I'm new)
# find files created in last 10 minutes and, if found, email an alert

#!/bin/sh

find /home/folder...
11,489
Posted By gardellap
The problem is.....
# find home/folder -cmin -10 | echo <email message> |mutt -s <email subject> <email address>

This always send an email whether or not any files are found that were created in the last 10 minutes....
11,489
Posted By gardellap
Sending find command results to email
This is probably simple so forgive me...

I just want to find all files in a folder created within the last 10 minutes...
This is easy:

# find /home/folder -cmin -10

If the find command...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy