- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Get the timestamp of a file on HP?
Operating System - HP-UX
1753851
Members
9443
Online
108808
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
тАО09-13-2010 05:38 AM
тАО09-13-2010 05:38 AM
Re: Get the timestamp of a file on HP?
>VK2COT: do not rely time stamp
Eventually -c option works to find out real time stamp:
#ls -ld /tmp/blah
-rw-r--r-- 1 root sys 0 Oct 27 2009 /tmp/blah
# ls -lc /tmp/blah
-rw-r--r-- 1 root sys 0 Sep 13 16:41 /tmp/blah
Eventually -c option works to find out real time stamp:
#ls -ld /tmp/blah
-rw-r--r-- 1 root sys 0 Oct 27 2009 /tmp/blah
# ls -lc /tmp/blah
-rw-r--r-- 1 root sys 0 Sep 13 16:41 /tmp/blah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2010 05:52 AM
тАО09-13-2010 05:52 AM
Re: Get the timestamp of a file on HP?
Thanks everybody, for the very good advice!
My real intention is to create a cache file and refresh it based on a certain timeout value.
Thanks again!
My real intention is to create a cache file and refresh it based on a certain timeout value.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2010 06:42 AM
тАО09-13-2010 06:42 AM
Re: Get the timestamp of a file on HP?
>Hakki: What do you say VK2COT's information about time_stamp unreliability?
It's correct. But if you want to depend on it, you need to make sure the file isn't writable.
It also may be completely unrelated to what Michelle wants.
>I am totally surprised.
Isn't it obvious? :-)
>Eventually -c option works to find out real time stamp:
There are three timestamps, it depends on what you want. -c provides the inode change time, rather than the content change time.
It's correct. But if you want to depend on it, you need to make sure the file isn't writable.
It also may be completely unrelated to what Michelle wants.
>I am totally surprised.
Isn't it obvious? :-)
>Eventually -c option works to find out real time stamp:
There are three timestamps, it depends on what you want. -c provides the inode change time, rather than the content change time.
- « 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