- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Files 15 mins older than sysdate
Operating System - HP-UX
1752815
Members
6138
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-15-2009 02:31 AM
тАО05-15-2009 02:31 AM
Re: Files 15 mins older than sysdate
Hi,
Restart the swagentd daemon.
#/usr/sbin/swagentd -r
Restart the swagentd daemon.
#/usr/sbin/swagentd -r
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 02:46 AM
тАО05-15-2009 02:46 AM
Re: Files 15 mins older than sysdate
Hmm, that perl command doesn't seem to return the 15+ minutes older than sysdate count of files in the directory:
root: /oraother/dst/comms/outtray # ll
total 9616
-rw------- 1 dstdba dba 2417496 Feb 6 2008 core.0468
-rw------- 1 dstdba dba 2483032 Jan 31 2008 core.9416
-rw-r--r-- 1 dstdba dba 786 Feb 6 2008 sqlnet.log.0452
-rw-r--r-- 1 dstdba dba 832 Feb 6 2008 sqlnet.log.0456
-rw-r--r-- 1 dstdba dba 786 Feb 6 2008 sqlnet.log.0469
-rw-r--r-- 1 dstdba dba 786 Feb 6 2008 sqlnet.log.0471
-rw-r--r-- 1 dstdba dba 832 Feb 15 2008 sqlnet.log.2185
-rw-r--r-- 1 dstdba dba 786 Feb 15 2008 sqlnet.log.2187
-rw-r--r-- 1 dstdba dba 786 Jan 31 2008 sqlnet.log.9393
-rw-r--r-- 1 dstdba dba 786 Jan 31 2008 sqlnet.log.9412
-rw-r--r-- 1 dstdba dba 786 Jan 31 2008 sqlnet.log.9416
-rw-r--r-- 1 dstdba dba 832 Feb 5 2008 sqlnet.log.9805
root: /oraother/dst/comms/outtray # perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_&&-M_ >=(15/(60*24))},$path)' /oraother/dst/comms/outtray | wc -l
0
Any ideas?
root: /oraother/dst/comms/outtray # ll
total 9616
-rw------- 1 dstdba dba 2417496 Feb 6 2008 core.0468
-rw------- 1 dstdba dba 2483032 Jan 31 2008 core.9416
-rw-r--r-- 1 dstdba dba 786 Feb 6 2008 sqlnet.log.0452
-rw-r--r-- 1 dstdba dba 832 Feb 6 2008 sqlnet.log.0456
-rw-r--r-- 1 dstdba dba 786 Feb 6 2008 sqlnet.log.0469
-rw-r--r-- 1 dstdba dba 786 Feb 6 2008 sqlnet.log.0471
-rw-r--r-- 1 dstdba dba 832 Feb 15 2008 sqlnet.log.2185
-rw-r--r-- 1 dstdba dba 786 Feb 15 2008 sqlnet.log.2187
-rw-r--r-- 1 dstdba dba 786 Jan 31 2008 sqlnet.log.9393
-rw-r--r-- 1 dstdba dba 786 Jan 31 2008 sqlnet.log.9412
-rw-r--r-- 1 dstdba dba 786 Jan 31 2008 sqlnet.log.9416
-rw-r--r-- 1 dstdba dba 832 Feb 5 2008 sqlnet.log.9805
root: /oraother/dst/comms/outtray # perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_&&-M_ >=(15/(60*24))},$path)' /oraother/dst/comms/outtray | wc -l
0
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 03:54 AM
тАО05-15-2009 03:54 AM
Solution
Hi Yvonne:
There are two problems here -- both mine!
First, it looks like in the second post I made I lost some whitespace. There is actually a warning that we could see:
# perl -MFile::Find -wle '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_&&-M_ >=(15/(60*24))},$path)'
Next, my original, math was horrible! FOr files older than 15-minutes we need:
# perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_ && -M _ >= ((15*60)/(60*60*24))},$path)'
You will see that I haven't tried to factor in my head :-)
The '-M' tests the modification age of a file in the number of DAYS, so the expression represents that fraction of a DAY that is 15-minutes.
My apologies again, but at least your Perl is reasonably up-to-date now!
Regards!
...JRF...
There are two problems here -- both mine!
First, it looks like in the second post I made I lost some whitespace. There is actually a warning that we could see:
# perl -MFile::Find -wle '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_&&-M_ >=(15/(60*24))},$path)'
Next, my original, math was horrible! FOr files older than 15-minutes we need:
# perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_ && -M _ >= ((15*60)/(60*60*24))},$path)'
You will see that I haven't tried to factor in my head :-)
The '-M' tests the modification age of a file in the number of DAYS, so the expression represents that fraction of a DAY that is 15-minutes.
My apologies again, but at least your Perl is reasonably up-to-date now!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 04:32 AM
тАО05-15-2009 04:32 AM
Re: Files 15 mins older than sysdate
Thanks very much James, that revised Perl command does exactly what I need (with a "| wc -l" at the end).
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP