- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find not working
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
11-20-2006 08:28 AM
11-20-2006 08:28 AM
I get nothing. Yet there are files in the
current directory that older than 1 day.
Whats up with this?
18 14:06 BPC_1060630.log
-rw-rw-rw- 1 oracle cedwgs 9069 Nov 18 14:06 BPC_1060630.pdf
-rw-rw-rw- 1 oracle cedwgs 2685 Nov 18 16:22 BPC_1060636.log
-rw-rw-rw- 1 oracle cedwgs 38085 Nov 18 16:22 BPC_1060636.pdf
-rw-rw-rw- 1 oracle cedwgs 1775 Nov 18 16:25 BPC_1060643.log
-rw-rw-rw- 1 oracle cedwgs 200405 Nov 18 16:25 BPC_1060643.pdf
-rw-rw-rw- 1 oracle cedwgs 3980 Nov 18 16:29 BPC_1060649.log
-rw-rw-rw- 1 oracle cedwgs 1739266 Nov 18 16:29 BPC_1060649.pdf
-rw-rw-rw- 1 oracle cedwgs 1177 Nov 18 16:30 BPC_1060660.log
-rw-rw-rw- 1 oracle cedwgs 5592 Nov 18 16:30 BPC_1060660.pdf
-rw-rw-rw- 1 oracle cedwgs 1034 Nov 18 16:47 BPC_1060664.log
-rw-rw-rw- 1 oracle cedwgs 23257 Nov 18 16:47 BPC_1060664.pdf
-rw-rw-rw- 1 oracle cedwgs 1034 Nov 18 17:07 BPC_1060667.log
-rw-rw-rw- 1 oracle cedwgs 23257 Nov 18 17:07 BPC_1060667.pdf
-rw-rw-rw- 1 oracle cedwgs 1034 Nov 18 17:28 BPC_1060670.log
-rw-rw-rw- 1 oracle cedwgs 23257 Nov 18 17:28 BPC_1060670.pdf
-rw-rw-rw- 1 oracle cedwgs 1034 Nov 18 17:31 BPC_1060673.log
-rw-rw-rw- 1 oracle cedwgs 23257 Nov 18 17:31 BPC_1060673.pdf
.
.
.
.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 08:48 AM
11-20-2006 08:48 AM
Solutionfind . -mtime 0 # find files modified within the past 24 hours
find . -mtime -1 # find files modified within the past 24 hours
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago
find . -mmin +5 -mmin -10 # find files modifed between 5 and 10 minutes ago
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 08:51 AM
11-20-2006 08:51 AM
Re: find not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 08:55 AM
11-20-2006 08:55 AM
Re: find not working
If the time on these servers was not correct
to the second we would here about it from
production. Believe me. We have.
Besides. I cannot have files the have a time
stamp in the future if the time was two days
back.
.
.
.
rw-rw-rw- 1 oracle cedwgs 2091 Nov 20 10:37 BPC_1060908.log
-rw-rw-rw- 1 oracle cedwgs 98902 Nov 20 10:37 BPC_1060908.pdf
-rw-rw-rw- 1 oracle cedwgs 2716 Nov 20 10:46 BPC_1060915.log
-rw-rw-rw- 1 oracle cedwgs 135976 Nov 20 10:46 BPC_1060915.pdf
-rw-rw-rw- 1 oracle cedwgs 2380 Nov 20 10:53 BPC_1060925.log
-rw-rw-rw- 1 oracle cedwgs 5487 Nov 20 10:53 BPC_1060925.pdf
-rw-rw-rw- 1 oracle cedwgs 2632 Nov 20 11:01 BPC_1060933.log
-rw-rw-rw- 1 oracle cedwgs 5487 Nov 20 11:01 BPC_1060933.pdf
-rw-rw-rw- 1 oracle cedwgs 1067 Nov 20 12:58 BPC_1060942.log
-rw-rw-rw- 1 oracle cedwgs 3751 Nov 20 14:02 BPC_1060945.log
-rw-rw-rw- 1 oracle cedwgs 11924 Nov 20 14:02 BPC_1060945.pdf
-rw-rw-rw- 1 oracle cedwgs 3751 Nov 20 14:03 BPC_1060957.log
-rw-rw-rw- 1 oracle cedwgs 11924 Nov 20 14:03 BPC_1060957.pdf
-rw-rw-rw- 1 oracle cedwgs 3841 Nov 20 14:06 BPC_1060969.log
-rw-rw-rw- 1 oracle cedwgs 5990 Nov 20 14:06 BPC_1060969.pdf
-rw-rw-rw- 1 oracle cedwgs 10727 Nov 20 14:59 BPC_1060981.log
-rw-rw-rw- 1 oracle cedwgs 1907 Nov 20 15:16 BPC_1060993.log
-rw-rw-rw- 1 oracle cedwgs 1177 Nov 20 15:16 BPC_1060997.log
-rw-rw-rw- 1 oracle cedwgs 5688 Nov 20 15:16 BPC_1060997.pdf
-rw-rw-rw- 1 oracle cedwgs 1177 Nov 20 15:17 BPC_1061001.log
-rw-rw-rw- 1 oracle cedwgs 6522 Nov 20 15:17 BPC_1061001.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 09:04 AM
11-20-2006 09:04 AM
Re: find not working
find . -ctime +1 (changee more than 1 day ago)
or
find . -atime +1 (accessed more then 1 day ago)
Sonny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 09:07 AM
11-20-2006 09:07 AM
Re: find not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 09:20 AM
11-20-2006 09:20 AM
Re: find not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 09:25 AM
11-20-2006 09:25 AM
Re: find not working
If you want to find files between 24 and 48 hours use "find . -mtime 1"
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 09:35 AM
11-20-2006 09:35 AM
Re: find not working
Thanks Yang.
Yang, what is the option "mmin" in
"find . -mmin +5 -mmin -10 "
mmin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 09:52 AM
11-20-2006 09:52 AM
Re: find not working
The -mtime reports files that have changed between the argument to mtime and the time the files are accessed by find. Basically I'm reiterating what has already been said by Clay i.e. to post the current date and time on your server since the diff between that and the file mtime as reported by ls will determine whether the files will show up or not.
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 10:08 AM
11-20-2006 10:08 AM
Re: find not working
Yang