![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find the age of a file in Minutes | hari_anj | Shell Programming and Scripting | 1 | 03-18-2008 06:22 AM |
| Find files not accessed on a remote server and delete - Help! | bond_bhai | Shell Programming and Scripting | 1 | 07-17-2007 05:59 AM |
| Find files on minutes basis | er_aparna | Shell Programming and Scripting | 3 | 07-16-2006 09:57 PM |
| only find files older than x minutes old | dsimpg1 | Shell Programming and Scripting | 1 | 05-18-2006 11:48 PM |
| find files onder than 15 minutes | sveera | UNIX for Advanced & Expert Users | 11 | 08-11-2005 03:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find accessed file in past 1 or 2 minutes, and throw mail.
Can Anyone tell me how to write the Script to "find file(s) in a directory that is being accessed in last 5 minutes, and if there is result of that find, then throw the mail ".
Means throw the mail to a person regarding whoever and whenever a file is accessed in a directory. ASAP. Thnks. |
|
||||
|
MYPATH="/clocal/mqbrkrs/user/mqsiadm/xyz/"
find "$MYPATH" -type f -amin -1 > tempfind.txt In the above path I want to find the files which has been viewed/opened/touched/modified by any user in past 1 minute. Viewed/opened/touched means file contents has been opened using more/cat/tail/head etc. commands. find command that i am using, it shows the name of the file in which i have written the script (Means the script file only). I have already checked the man find. Can you guide me on this !! Thanks !! |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|