- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Determing when a file is (no longer) being accesse...
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
Discussions
Discussions
Forums
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
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
тАО02-05-2004 03:50 AM
тАО02-05-2004 03:50 AM
My Question: What other method can be used to determine if a file is no longer being accessed? (Something besides 'fuser'...)
My Best to all,
Phil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 03:53 AM
тАО02-05-2004 03:53 AM
Re: Determing when a file is (no longer) being accessed
lsof immediately comes to mind & outta the box it IS executable by others.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 03:54 AM
тАО02-05-2004 03:54 AM
Re: Determing when a file is (no longer) being accessed
find /tmp -atime +7 -print
That will find all files and directories in /tmp that were last accessed 7 or more days ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 03:54 AM
тАО02-05-2004 03:54 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 03:54 AM
тАО02-05-2004 03:54 AM
Re: Determing when a file is (no longer) being accessed
# man find
Eg:
# find /var -type f -mtime -2 -exec ll {} \;
this will list all files which were modified with in the last 2 days.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 03:55 AM
тАО02-05-2004 03:55 AM
Re: Determing when a file is (no longer) being accessed
I'm not sure whether lsof would require root privileges as well but you could try it:
11i/64bit:
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.00/vxfs/64/9000_785/
11.0/64bit:
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/
11.x/32bit
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.70/
Your other option is to look into sudo to distribute root privileges to other users:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 04:43 AM
тАО02-05-2004 04:43 AM
Re: Determing when a file is (no longer) being accessed
I have used the 'find' command, but not to the granularity required here.
The file in question is an Oracle archive log, and the need is to determine when it can be gzip'd after access by the DB is complete.
Thanks to all, please don't hesitate to add more to this thread if you think of anything else.
Thanks again.
Phil