[HPADM] Re: File Access

From: MuthuKumar (kmuthukumar@lycos.co.uk)
Date: Wed Oct 13 2004 - 05:38:10 EDT


I'm looking for a way to show the changes of a file access time. I am not sure how to show the changes via a find command with the
atime option. Is there a way I can show if a file has not been accessed in 2 hours? If the file is not updated within 2 hours I am
wanting to print a warning message, any help would be appreciated.

++++++++++++++++++++

We can do this as,

    create a temporary file with touch command with time frame of two hours before.
    touch ....... testfile

    find /path -name "*" -type f -newera newfile -exec ls -l {} \;

    You can use find command man page for -newer / -newera options more.

HTH.

Regards
Muthukumar.

---
===============  It is a "Virus Free Mail" ===============
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 10/8/2004 
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:43 EDT