- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find -atime changing access times
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 02:42 AM
01-29-2002 02:42 AM
Does anyone know a way of using the -atime switch with find, without the command itself changing the access times of the directories within the search path to the date that you ran the command.
Any help with this would be appreciated as we use the atime on directories as part of our archiving policy, and every time we run the command the access time on the directories is changed by the command.
Kindest regards,
Kev
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 04:11 AM
01-29-2002 04:11 AM
Re: Find -atime changing access times
I'm running 10.20, 11.0, and 11i and I don't see that behavior. Could you supply the find command that you are executing? Also, are you servers up to date with the latest major patch bundle?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 04:12 AM
01-29-2002 04:12 AM
SolutionI don't think its possible. The man page for find specifically states that 'the access time of directories in pathname-list is changed by find' which is what you would expect as it has to read the directories.
Can you change your archiving policy? I'd have thought that mtime is the relevant value for selecting files to be archived rather than atime.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 04:12 AM
01-29-2002 04:12 AM
Re: Find -atime changing access times
This is as documented, and even an "ls" changes the atime. If you knew what you wanted it to be, you could use "touch -a -t .... dirname" to change it back, but I'm not sure this is feasible in your situation.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 04:20 AM
01-29-2002 04:20 AM
Re: Find -atime changing access times
I think you cannot done
it.Because not only the find command, but every command
which enter into a directory,
change the access time of it.
It is coded in the filesystem.
(Check it with ls -u option)
# ls -alu .
Wait for 2 minutes
# ls -alu
(The time of . show the current time)
I think the solution could be
that you modify the backup policy, based on the modification date of the files.
Regards:
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 04:29 AM
01-29-2002 04:29 AM
Re: Find -atime changing access times
Sorry, my stupidity, I was thinking of the files and not the directories.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 05:22 AM
01-29-2002 05:22 AM
Re: Find -atime changing access times
This can be done, by writing a perl program to search for access time:
http://library.cs.tuiasi.ro/programming/perl/cookbook-UNPARSED/ch09_02.htm
Here's another sample of perl programs doing file stuff:
http://pleac.sourceforge.net/pleac_python/directories.html
live free or die
harry