- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to find files which are not modified in la...
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
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
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
07-27-2012 08:14 PM
07-27-2012 08:14 PM
How to find files which are not modified in last 15 minutes
Hi Group,
I have a directory with lots of subdirectories created by a Software.
Many files are created in these sub directories and picked by another software.
I want to write a cron job to list the files which are not being picked up in last 15 minutes .
How can I use the find command to list down the files which have a timestamp of more than 15 minutes.
ie: . SYSTEM TIME-File TImestamp > 15 mins
Please help with find command or any other script.
- Tags:
- date arithmetic
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2012 08:47 PM
07-27-2012 08:47 PM
Re: How to find files which are not modified in last 15 minutes
Unfortunately HP-UX's find only has granularity of days. To get smaller, you need a reference file and you must be able to do date arithmetic to figure out what's 15 minutes ago.
touch MMDDhhmm ref_file
find path -type f ! -newer ref_file