[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-admin
Subject: [HPADM] Re: File Access
From: "MuthuKumar" <kmuthukumar () lycos ! co ! uk>
Date: 2004-10-13 9:50:10
Message-ID: 20041013093853.581AEAB202 () lmcodec02 ! st1 ! spray ! net
[Download RAW message or body]
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic