- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find command - find files changed within the last ...
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
04-23-2007 05:12 AM
04-23-2007 05:12 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 05:18 AM
04-23-2007 05:18 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 05:20 AM
04-23-2007 05:20 AM
Re: Find command - find files changed within the last 30 minutes
Run your find command on it every 30 minutes as well:
find / -newer /tmp/touch.me -print > /tmp/changed.files
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 07:51 PM
04-23-2007 07:51 PM
Re: Find command - find files changed within the last 30 minutes
this should run. I'm writing should because I have no access to any box to test it.
perl -e 'while (<*>) { print "$_\n" if 1/48 > -M }
look for any file in current dir changed 30 minutes ago. Instead of <*> you can use <*.log> or anything else to reduce your search.
1/48 means a day divide by 48 = 30 minutes. If I well remmeber you can use always decimal value. Read Perl help for this.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 11:50 PM
04-23-2007 11:50 PM
Re: Find command - find files changed within the last 30 minutes
Depending on the frequencey with which you need to perform this task, I too might choose a Perl solution that intrinsically computes 30-minutes ago without having to create a reference file for 'find'.
Art's solution will work for both files *and* directories but will not descend subdirectories as 'find' will do.
To have the best of everything you might do:
# perl -MFile::Find -le 'find(sub{print $File::Find::name if -f $_ && -M _ < 1/48},".")'
This will find only *files* in the current working directory that have been modifed during the last 30-minutes.
Regards!
...JRF...